PyProj package installation PROJ_DIR variable
Asked Answered
B

2

5

I am attempting to install pyproj, although am getting a Proj executable not found. Please set PROJ_DIR variable error.

COMMAND

$ pipenv install pyproj

I have also tried pipenv git+https://github.com/jswhit/pyproj.git#egg=pyproj for the same result.

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']

Bibliology answered 10/3, 2019 at 2:49 Comment(0)
A
0

Installation instructions recommend to install precompiled wheels or use conda package manager.

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).

Argillaceous answered 10/3, 2019 at 13:36 Comment(2)
links are broken(Turnspit
Thanks, fixed. The docs moved to pyproj4.github.io/pyproj/htmlArgillaceous
N
9
pip install pyproj==1.9.6

Same issues, used above. Installs the latest version previous to March 8th, 2019, if that suits your needs.

Nikolenikoletta answered 13/3, 2019 at 12:16 Comment(1)
Thanks, @Nikolenikoletta for the answer! I installed proj version as suggested, but am still getting the same error. Can I ask, what version of celery you're running?Bibliology
A
0

Installation instructions recommend to install precompiled wheels or use conda package manager.

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).

Argillaceous answered 10/3, 2019 at 13:36 Comment(2)
links are broken(Turnspit
Thanks, fixed. The docs moved to pyproj4.github.io/pyproj/htmlArgillaceous

© 2022 - 2024 — McMap. All rights reserved.