I need to install pyproj on my machine and it give the above mentioned error. I guess it would be the same for other python components that are using C++ code:
我需要在我的机器上安装pyproj,它给出了上面提到的错误。我想对于使用c++代码的其他python组件来说也是一样的:
My situation:
我的情况:
Win 7 64 bit running.
赢得764位跑。
installed:
安装:
- VS 2008 express
- VS 2008表达
- MS VS patch for python 2.7 http://www.microsoft.com/en-us/download/confirmation.aspx?id=44266
- python 2.7的MS VS补丁http://www.microsoft.com/en- us/download/confirm.aspx? id=44266
- Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1 http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c17ba869-9671-4330-a63e-1fd44e0e2505
- 适用于Windows 7和。net Framework 3.5 SP1 http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c17ba869-9671-4330-a63e-1fd44e0e2505
- Python Setup Tools available here: http://pypi.python.org/pypi/setuptools#downloads
- 这里提供的Python安装工具:http://pypi.python.org/pypi/setuptools#下载
set up the path variables and set
设置路径变量并设置
VS90COMNTOOLSValue: C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools
VS90COMNTOOLSValue:C:\Program Files (x86)\Microsoft Visual Studio 9.0 \ Common7 \工具
I try to install the pyproj: http://jswhit.github.io/pyproj/
我尝试安装pyproj: http://jswhit.github.io/pyproj/。
but it returns the same error:
但它返回相同的错误:
File "msvc9compiler.py", line 271, in query_vcvarsall raise DistutilsPlatformError("Unable to find vcvarsall.bat") distutils.errors.DistutilsPlatformError: Unable to find vcvarsall.bat
the purpose of this is to get the pygrib package running: http://jswhit.github.io/pygrib/docs/index.html
这样做的目的是让pygrib包运行:http://jswhit.github.io/pygrib/docs/index.html
Does anybody know how to solve the problem?
有人知道怎么解决这个问题吗?
1 个解决方案
#1
2
You can install this without needing to compile it by using a precompiled Python wheel. You can find a compatible wheel for pyproj at this page containing unofficial wheels.
您可以安装它,而不需要使用预编译的Python轮来编译它。您可以在这个包含非官方*的页面找到与pyproj兼容的*。
You are specifically looking for pyproj-1.9.4-cp27-none-win_amd64.whl
. Once you download the whl
file, you can install it with pip using
您正在特别寻找pyproj-1.9.4-cp27-none-win_amd64.whl。下载完whl文件后,可以使用pip安装它
pip install pyproj-1.9.4-cp27-none-win_amd64.whl
And that will install it for you, skipping the compilation process.
这将为您安装它,跳过编译过程。
#1
2
You can install this without needing to compile it by using a precompiled Python wheel. You can find a compatible wheel for pyproj at this page containing unofficial wheels.
您可以安装它,而不需要使用预编译的Python轮来编译它。您可以在这个包含非官方*的页面找到与pyproj兼容的*。
You are specifically looking for pyproj-1.9.4-cp27-none-win_amd64.whl
. Once you download the whl
file, you can install it with pip using
您正在特别寻找pyproj-1.9.4-cp27-none-win_amd64.whl。下载完whl文件后,可以使用pip安装它
pip install pyproj-1.9.4-cp27-none-win_amd64.whl
And that will install it for you, skipping the compilation process.
这将为您安装它,跳过编译过程。