导入错误:无法从"安装工具"导入名称"功能"



我想安装这个 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('"'"'rn'"'"', '"'"'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.

该错误已在 1.1 版中修复,但deepdyn需要 1.0 版。这可能是deepdyn中的一个错误,应该报告。

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

最新更新