简体   繁体   English

PyProj软件包安装PROJ_DIR变量

[英]PyProj package installation PROJ_DIR variable

I am attempting to install pyproj , although am getting a Proj executable not found. Please set PROJ_DIR variable 我正在尝试安装pyproj ,尽管Proj executable not found. Please set PROJ_DIR variable Proj executable not found. Please set PROJ_DIR variable error. Proj executable not found. Please set PROJ_DIR variable错误。

COMMAND 命令

$ pipenv install pyproj

I have also tried pipenv git+https://github.com/jswhit/pyproj.git#egg=pyproj for the same result. 我也尝试过pipenv git+https://github.com/jswhit/pyproj.git#egg=pyproj以获得相同的结果。

OUTPUT 输出值

$ pipenv install pyproj Installation Succeeded Locking [dev-packages] dependencies Locking ['packages] dependancies Success! Installing dependencies from Pipfile.lock

ERROR 错误

[pipenv.exceptions.InstallError]: ['Collecting pyproj==2.0.0 (from -r /var/folders/g3/912 vtylj2hb71xf_d_8sxz480000gn/T/pipenv-qeun2uwi-requirements/pipenv-behbdii2-requirement.tx t (line 1))', ' Using cached https://files.pythonhosted.org/packages/53/4b/21643a93e7d33 941498087290636e34c6d534aa8baa1ada54cf0d096ffaa/pyproj-2.0.0.tar.gz', ' Installing build dependencies: started', " Installing build dependencies: finished with status 'done'", ' Getting requirements to build wheel: started', " Getting requirements to build wheel: finished with status 'error'", ' Complete output from command /Users/darcyprice/.local/ share/virtualenvs/pure-dawn-52933-x98m1awW/bin/python3 /Users/darcyprice/.local/share/vir tualenvs/pure-dawn-52933-x98m1awW/lib/python3.6/site-packages/pip/_vendor/pep517/_in_proc ess.py get_requires_for_build_wheel /var/folders/g3/912vtylj2hb71xf_d_8sxz480000gn/T/tmpw q5vvpkd:', ' Proj executable not found. Please set PROJ_DIR variable.', ' ', ' ------- ---------------------------------'] [pipenv.exceptions.InstallError]: ['Command "/Users/darcyprice/.local/share/virtualenvs/p ure-dawn-52933-x98m1awW/bin/python3 /Users/darcyprice/.local/share/virtualenvs/pure-dawn- 52933-x98m1awW/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py get_requires _for_build_wheel /var/folders/g3/912vtylj2hb71xf_d_8sxz480000gn/T/tmpwq5vvpkd" failed wit h error code 1 in /private/var/folders/g3/912vtylj2hb71xf_d_8sxz480000gn/T/pip-install-t_ ap8o3w/pyproj']

pip install pyproj==1.9.6

Same issues, used above. 与上面相同的问题。 Installs the latest version previous to March 8th, 2019, if that suits your needs. 如果需要,请在2019年3月8日之前安装最新版本。

Installation instructions recommend to install precompiled wheels or use conda package manager. 安装说明建议安装预编译的车轮或使用conda软件包管理器。

In case you still want to compile PyProj from sources you need to setup PROJ.4 (please understand that PyProj is a Python wrapper for Proj). 如果您仍然想从源代码编译PyProj,则需要设置PROJ.4 (请理解PyProj是Proj的Python包装器)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM