gpt4 book ai didi

c++ - 在 win7 64 上使用 Python 2.7.9 的 pyproj 给出 "Unable to find vcvarsall.bat"

转载 作者:可可西里 更新时间:2023-11-01 10:21:27 27 4
gpt4 key购买 nike

我需要在我的机器上安装 pyproj,它给出了上述错误。我猜其他使用 C++ 代码的 python 组件也是一样的:

我的情况:

Win 7 64 位运行。

已安装:

设置路径变量并设置

VS90COMNTOOLS值:C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools

我尝试安装 pyproj:http://jswhit.github.io/pyproj/

但它返回相同的错误:

  File "msvc9compiler.py", line 271, in  query_vcvarsall raise DistutilsPlatformError("Unable to find vcvarsall.bat") distutils.errors.DistutilsPlatformError: Unable to find vcvarsall.bat

这样做的目的是让 pygrib 包运行:http://jswhit.github.io/pygrib/docs/index.html

有人知道如何解决这个问题吗?

最佳答案

您可以安装它而无需使用 precompiled Python wheel 编译它.您可以在 this page containing unofficial wheels 找到适用于 pyproj 的兼容轮.

您正在专门寻找 pyproj-1.9.4-cp27-none-win_amd64.whl。下载 whl 文件后,您可以使用 pip 安装它

pip install pyproj-1.9.4-cp27-none-win_amd64.whl

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

关于c++ - 在 win7 64 上使用 Python 2.7.9 的 pyproj 给出 "Unable to find vcvarsall.bat",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27876226/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com