【问题标题】:ImportError: cannot import name 'Feature' from 'setuptools [closed]ImportError:无法从“setuptools”导入名称“Feature”[关闭]
【发布时间】:2020-06-05 18:59:38
【问题描述】:

我想安装这个https://github.com/sraashis/deepdyn项目的需求,但是当我运行时:

pip install -r deepdyn/assets/requirements.txt

我在终端收到以下错误:

ERROR: Command errored out with exit status 1:
     command: /home/masoud/anaconda3/envs/tfgpu/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-xzvdvhgj/MarkupSafe/setup.py'"'"'; __file__='"'"'/tmp/pip-install-xzvdvhgj/MarkupSafe/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 /tmp/pip-pip-egg-info-v7ebj7ab
         cwd: /tmp/pip-install-xzvdvhgj/MarkupSafe/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-xzvdvhgj/MarkupSafe/setup.py", line 6, in <module>
        from setuptools import setup, Extension, Feature
    ImportError: cannot import name 'Feature' from 'setuptools' (/home/masoud/anaconda3/envs/tfgpu/lib/python3.7/site-packages/setuptools/__init__.py)
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

【问题讨论】:

标签: python pip setuptools


【解决方案1】:

该错误已在 version 1.1deepdyn requires 版本 1.0 中修复。这可能是deepdyn 中的一个错误,应该是reported

或者可能是deepdyn 需要一些旧版本的setuptools。再次询问作者。

【讨论】:

  • 这是我必须用来解决此问题的命令pip3 install setuptools==45
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-04-06
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2022-01-22
相关资源
最近更新 更多