[英]Error Installing Pyproj in Python 3.5
From last couple of day, I am trying to install the pyproj package of python using pip. 从最近几天开始,我正在尝试使用pip安装python的pyproj包。 But I am getting the below quoted error. 但我得到以下引用的错误。 I have tried all the relevant solution available but was unable to install it. 我已经尝试了所有可用的相关解决方案,但无法安装它。 Thanks in Advance 提前致谢
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\**
You need dev tools for Python3.5 您需要用于Python3.5的开发工具
sudo apt-get update
sudo apt-get install python3.5-dev -y
pip install pyproj
if using Python3.6 need to update the second line. 如果使用Python3.6需要更新第二行。
Pyproj needs a compiler ( vcvarsall.bat
hints towards a Visual C in Windows), which you don't seem to have installed. Pyproj需要一个编译器( vcvarsall.bat
暗示Windows中的Visual C),你似乎没有安装它。 Instead of installing from source, I suggest downloading a pre-compiled wheel and install the package from that . 我建议不要从源代码安装,而是下载预编译的轮子并从中安装包 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.