gpt4 book ai didi

python - PyProj包安装PROJ_DIR变量

转载 作者:太空宇宙 更新时间:2023-11-04 08:28:15 24 4
gpt4 key购买 nike

我正在尝试安装 pyproj,但我得到的是 Proj 可执行文件未找到。请设置 PROJ_DIR 变量错误。

命令

$ pipenv 安装 pyproj

我也试过 pipenv git+https://github.com/jswhit/pyproj.git#egg=pyproj 得到同样的结果。

输出

$ pipenv 安装 pyproj
安装成功
锁定 [dev-packages] 依赖项
锁定 ['packages] 依赖项
成功!
从 Pipfile.lock 安装依赖项

错误

[pipenv.exceptions.InstallError]: ['收集 pyproj==2.0.0(来自 -r/var/folders/g3/912
vtylj2hb71xf_d_8sxz480000gn/T/pipenv-qeun2uwi-requirements/pipenv-behbdii2-requirement.tx
t (line 1))', ' 使用缓存 https://files.pythonhosted.org/packages/53/4b/21643a93e7d33
941498087290636e34c6d534aa8baa1ada54cf0d096ffaa/pyproj-2.0.0.tar.gz', '正在安装构建
依赖项:开始',“正在安装构建依赖项:完成状态为'完成'”,
'获取构建轮子的要求:开始',“获取构建轮子的要求:
完成状态为 'error'", ' 命令/Users/darcyprice/.local/的完整输出
共享/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_DIR 变量。', ' ', ' ------
------------------------------']
[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"机智失败
/private/var/folders/g3/912vtylj2hb71xf_d_8sxz480000gn/T/pip-install-t_ 中的 h 错误代码 1
ap8o3w/pyproj']

最佳答案

pip install pyproj==1.9.6

同样的问题,上面用过。如果满足您的需要,请安装 2019 年 3 月 8 日之前的最新版本。

关于python - PyProj包安装PROJ_DIR变量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55084003/

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