Python 已安装Versioner,但pip安装仍会给出ModuleNotFoundError

Python 已安装Versioner,但pip安装仍会给出ModuleNotFoundError,python,pip,Python,Pip,我在我的环境中安装了versioneer模块,运行python-m versioneer--version可以确认这一点。然而,当我pip安装cartopy时,仍然会得到一个ModuleNotFoundError,如下所示: (GIS3) gholl@lce00:~> python -m versioneer --version versioneer (installer) 0.18 (GIS3) gholl@lce00:~> python -V Python 3.7.1 (GIS3

我在我的环境中安装了
versioneer
模块,运行
python-m versioneer--version
可以确认这一点。然而,当我
pip安装cartopy
时,仍然会得到一个
ModuleNotFoundError
,如下所示:

(GIS3) gholl@lce00:~> python -m versioneer --version
versioneer (installer) 0.18
(GIS3) gholl@lce00:~> python -V
Python 3.7.1
(GIS3) gholl@lce00:~> which python
/hpc/uhome/gholl/miniconda3/envs/GIS3/bin/python
(GIS3) gholl@lce00:~> which pip
/hpc/uhome/gholl/miniconda3/envs/GIS3/bin/pip
(GIS3) gholl@lce00:~> pip install cartopy
Collecting cartopy
  Using cached https://files.pythonhosted.org/packages/e5/92/fe8838fa8158931906dfc4f16c5c1436b3dd2daf83592645b179581403ad/Cartopy-0.17.0.tar.gz
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  Complete output from command /hpc/uhome/gholl/miniconda3/envs/GIS3/bin/python /hpc/uhome/gholl/miniconda3/envs/GIS3/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /hpc/gtmp/gholl/.jtmp.lce00.20190206.082115.24214/tmpmcze3ux9:
  Traceback (most recent call last):
    File "/hpc/uhome/gholl/miniconda3/envs/GIS3/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 207, in <module>
      main()
    File "/hpc/uhome/gholl/miniconda3/envs/GIS3/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 197, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/hpc/uhome/gholl/miniconda3/envs/GIS3/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 54, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/lustre1/gtmp/gholl/.jtmp.lce00.20190206.082115.24214/pip-build-env-q2k4jnrs/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 130, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=['wheel'])
    File "/lustre1/gtmp/gholl/.jtmp.lce00.20190206.082115.24214/pip-build-env-q2k4jnrs/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 112, in _get_build_requires
      self.run_setup()
    File "/lustre1/gtmp/gholl/.jtmp.lce00.20190206.082115.24214/pip-build-env-q2k4jnrs/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 126, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 36, in <module>
      import versioneer
  ModuleNotFoundError: No module named 'versioneer'

  ----------------------------------------
Command "/hpc/uhome/gholl/miniconda3/envs/GIS3/bin/python /hpc/uhome/gholl/miniconda3/envs/GIS3/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /hpc/gtmp/gholl/.jtmp.lce00.20190206.082115.24214/tmpmcze3ux9" failed with error code 1 in /lustre1/gtmp/gholl/.jtmp.lce00.20190206.082115.24214/pip-install-2q1hjb0u/cartopy
(GIS3)gholl@lce00:~>python-m versioneer--version
Versioner(安装程序)0.18
(GIS3)gholl@lce00:~>python-V
Python 3.7.1
(GIS3)gholl@lce00:~>哪条python
/hpc/uhome/gholl/miniconda3/envs/GIS3/bin/python
(GIS3)gholl@lce00:~>哪个pip
/hpc/uhome/gholl/miniconda3/envs/GIS3/bin/pip
(GIS3)gholl@lce00:~>pip安装cartopy
收集纸箱
使用缓存https://files.pythonhosted.org/packages/e5/92/fe8838fa8158931906dfc4f16c5c1436b3dd2daf83592645b179581403ad/Cartopy-0.17.0.tar.gz
正在安装生成依赖项。。。完成
获取构建轮子的需求。。。错误
从命令/hpc/uhome/gholl/miniconda3/envs/GIS3/bin/python/hpc/uhome/gholl/miniconda3/envs/GIS3/lib/python3.7/site-packages/pip//u vendor/pep517//u in_process.py get_需要_for_build_wheel/hpc/gtmp/gholl/.jtmp.lce00.20190206.082115.24214/tmpmcze3ux9的完整输出:
回溯(最近一次呼叫最后一次):
文件“/hpc/uhome/gholl/miniconda3/envs/GIS3/lib/python3.7/site packages/pip/_vendor/pep517/_in_process.py”,第207行,在
main()
文件“/hpc/uhome/gholl/miniconda3/envs/GIS3/lib/python3.7/site packages/pip/_vendor/pep517/_in_process.py”,主行197
json_out['return_val']=hook(**hook_输入['kwargs'])
文件“/hpc/uhome/gholl/miniconda3/envs/GIS3/lib/python3.7/site packages/pip/_vendor/pep517/_in_process.py”,get_中的第54行需要用于构建车轮
返回挂钩(配置设置)
文件“/lustre1/gtmp/gholl/.jtmp.lce00.20190206.082115.24214/pip-build-env-q2k4jnrs/overlay/lib/python3.7/site packages/setuptools/build\u meta.py”,第130行,get\u需要用于构建车轮
返回self.\u获取\u构建\u需要(配置设置,要求=['wheel'])
文件“/lustre1/gtmp/gholl/.jtmp.lce00.20190206.082115.24214/pip-build-env-q2k4jnrs/overlay/lib/python3.7/site packages/setuptools/build\u meta.py”,第112行,在“获取\构建”中
self.run_setup()
文件“/lustre1/gtmp/gholl/.jtmp.lce00.20190206.082115.24214/pip-build-env-q2k4jnrs/overlay/lib/python3.7/site packages/setuptools/build\u meta.py”,第126行,运行设置
exec(编译(代码、文件、exec)、局部变量()
文件“setup.py”,第36行,在
导入版本器
ModuleNotFoundError:没有名为“Versioner”的模块
----------------------------------------
命令“/hpc/uhome/gholl/miniconda3/envs/GIS3/bin/python/hpc/uhome/gholl/miniconda3/envs/GIS3/lib/python3.7/site-packages/pip//u vendor/pep517//u in_process.py get_需要_-in_-wheel/hpc/gtmp/gholl/.jtmp.lce00.20190206.082115.24214/tmpmczuxe39”失败,错误代码为/lustre1/gtmp/gholl/.jtmp.lce00.20190206.082115.24214/pip-install-2q1hjb0u/cartopy中的1
为什么安装了
versioner
模块,但是
pip install cartopy
仍然找不到它



(我知道我将pip安装到了一个conda环境中,但我同时调试了一个问题,一个完整的
conda安装
想要降级Python,或者导致或错误,所以这个问题确实有它的一个方面-但是,我还有其他事情要尝试)

Cartopy 0.17.0存在一个已知问题,如下所述:

您可以尝试使用
pip安装cartopy==0.16.0
,也可以尝试使用
pip安装--no-use-pep517 cartopy
。或者,这似乎是>=0.19的问题,因此您也可以尝试降低pip的等级