在python环境中安装PROJ时出现问题

VGB

无法安装 PROJ

>>pip install git+https://github.com/OSGeo/PROJ.git

Collecting git+https://github.com/OSGeo/PROJ.git
  Cloning https://github.com/OSGeo/PROJ.git to c:\users\lenovo\appdata\local\temp\pip-req-build-jwr6msmg
    ERROR: Command errored out with exit status 1:
     command: 'c:\python37\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\lenovo\\AppData\\Local\\Temp\\pip-req-build-jwr6msmg\\setup.py'"'"'; __file__='"'"'C:\\Users\\lenovo\\AppData\\Local\\Temp\\pip-req-build-jwr6msmg\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\lenovo\AppData\Local\Temp\pip-pip-egg-info-w2azftsy'
         cwd: C:\Users\lenovo\AppData\Local\Temp\pip-req-build-jwr6msmg\
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "c:\python37\lib\tokenize.py", line 447, in open
        buffer = _builtin_open(filename, 'rb')
    FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\lenovo\\AppData\\Local\\Temp\\pip-req-build-jwr6msmg\\setup.py'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

我尝试使用源文件手动安装它,但同时也会出现以下错误

>>> pip install proj-7.1.1.tar.gz
Processing e:\wihg\15-09-2020\surfacewave tomography\iris_data\test\proj-7.1.1.tar.gz
    ERROR: Command errored out with exit status 1:
     command: 'c:\python37\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\lenovo\\AppData\\Local\\Temp\\pip-req-build-3y5iufx3\\setup.py'"'"'; __file__='"'"'C:\\Users\\lenovo\\AppData\\Local\\Temp\\pip-req-build-3y5iufx3\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\lenovo\AppData\Local\Temp\pip-pip-egg-info-2t2y4p78'
         cwd: C:\Users\lenovo\AppData\Local\Temp\pip-req-build-3y5iufx3\
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "c:\python37\lib\tokenize.py", line 447, in open
        buffer = _builtin_open(filename, 'rb')
    FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\lenovo\\AppData\\Local\\Temp\\pip-req-build-3y5iufx3\\setup.py'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

如何解决这个错误?(必须在非conda环境中安装它)

多普勒频移

PROJ是C语言库,而不是Python软件包,因此您无法使用pip它进行安装。

如果您只想使用Python中的PROJ,则可以使用PyPROJ并使用进行安装pip install pyproj在MacOS,Linux和Windows上,这将为您提供已经包含PROJ的预制轮子。

如果您试图为CartoPy安装它(基于您的标签),则需要按照其安装说明分别安装PROJ

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

在Anaconda中安装“ MATLAB Engine for Python”时出现问题

来自分类Dev

在GCP Cloudbuild中安装python要求时出现问题

来自分类Dev

安装Python时出现问题

来自分类Dev

安装Maven时出现问题(“ / usr / bin”未包含在PATH环境变量中)

来自分类Dev

在 Goorm IDE 环境中在 Ubuntu 14 上安装 phpmyadmin 时出现问题

来自分类Dev

设置python 3.7虚拟环境时出现问题

来自分类Dev

安装Python-Dev时出现问题

来自分类Dev

为python 3.5安装模块时出现问题

来自分类Dev

安装Python-Dev时出现问题

来自分类Dev

为python安装软件包时出现问题

来自分类Dev

在MacOS上安装libvirt-python时出现问题

来自分类Dev

安装python模块pybfd时出现问题

来自分类Dev

在yii 2安装中运行init时出现问题

来自分类Dev

在我的fstab中安装SMB共享时出现问题

来自分类Dev

在VMPlayer中安装14.04时出现问题

来自分类Dev

在Virtualbox中安装Ubuntu时出现问题

来自分类Dev

在Ubuntu 16.04中安装Google Chrome时出现问题

来自分类Dev

在Ubuntu 16.04中安装pip时出现问题

来自分类Dev

在我的 fstab 中安装 SMB 共享时出现问题

来自分类Dev

在python 3.5.1中安装scipy和pybrain时出现问题

来自分类Dev

在 Ubuntu 18.04 中为 python 2.7.16 安装 pip 时出现问题

来自分类Dev

安装JOGL(Eclipse)时出现问题

来自分类Dev

安装bspwm时出现问题

来自分类Dev

安装mysqlworkbench 6时出现问题

来自分类Dev

安装VTK时出现问题

来自分类Dev

安装Pycharm时出现问题

来自分类Dev

安装Windows服务时出现问题

来自分类Dev

安装pg gem时出现问题

来自分类Dev

安装Gulp时出现问题