在win764上使用Python 2.7.9的pyproj给出了“无法找到vcvarsall.bat”

时间:2022-09-10 20:29:33

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:

安装:

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.

这将为您安装它,跳过编译过程。