gpt4 book ai didi

python - 在 Python 3.5 中安装 Pyproj 时出错

转载 作者:太空狗 更新时间:2023-10-30 00:54:30 25 4
gpt4 key购买 nike

从最近几天开始,我尝试使用pip 安装python 的pyproj 包。但是我收到下面引用的错误。我已经尝试了所有可用的相关解决方案,但无法安装。提前致谢

C:\Users\ashujaimini\PycharmProjects\untitled1>pip install Pillow
Requirement already satisfied (use --upgrade to upgrade): Pillow in c:\users\ashujaimini\anaconda3\lib\site-packages

C:\Users\ashujaimini\PycharmProjects\untitled1>pip install pyproj
Collecting pyproj
Using cached pyproj-1.9.5.1.tar.gz
Complete output from command python setup.py egg_info:
using bundled proj4..
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\ASHUJA~1\AppData\Local\Temp\pip-build-nwtkvc3t\pyproj\setup.py", line 72, in <module>
objects = cc.compile(['nad2bin.c', 'src/pj_malloc.c'])
File "c:\users\ashujaimini\anaconda3\lib\distutils\_msvccompiler.py", line 317, in compile
self.initialize()
File "c:\users\ashujaimini\anaconda3\lib\distutils\_msvccompiler.py", line 210, in initialize
vc_env = _get_vc_env(plat_spec)
File "c:\users\ashujaimini\anaconda3\lib\distutils\_msvccompiler.py", line 85, in _get_vc_env
raise DistutilsPlatformError("Unable to find vcvarsall.bat")
distutils.errors.DistutilsPlatformError: Unable to find vcvarsall.bat


**Command "python setup.py egg_info" failed with error code 1 in C:\Users\ASHUJA~1\AppData\Local\Temp\pip-build-nwtkvc3t\pyproj\**

最佳答案

试试这个

easy_install pyproj

sudo easy_install pyproj

或从 pyproj 下载 tar 文件并尝试运行

pip install [path to downloaded tar file]

关于python - 在 Python 3.5 中安装 Pyproj 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37521682/

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