Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/309.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 导入错误:无法导入名称';功能';从';设置工具_Python_Pip_Setuptools - Fatal编程技术网

Python 导入错误:无法导入名称';功能';从';设置工具

Python 导入错误:无法导入名称';功能';从';设置工具,python,pip,setuptools,Python,Pip,Setuptools,我想安装此项目的要求,但运行时: 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-

我想安装此项目的要求,但运行时:

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.
错误:命令出错,退出状态为1:
命令:/home/masoud/anaconda3/envs/tfgpu/bin/python-c'import sys、setuptools、tokenize;sys.argv[0]=''''/tmp/pip install xzvdvhgj/MarkupSafe/setup.py''__文件'''''/tmp/pip install xzvdvhgj/MarkupSafe/setup.py'''';f=getattr(标记化,“'open'”,open)(\uuuuu文件);code=f.read().replace(“\r\n”“”、“\n”“”);f、 close();exec(编译(代码,“'exec'”)“egg\u info--egg base/tmp/pip-pip-egg-info-v7ebj7ab
cwd:/tmp/pip安装xzvdvhgj/MarkupSafe/
完整输出(5行):
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“/tmp/pip install xzvdvhgj/MarkupSafe/setup.py”,第6行,在
从setuptools导入设置、扩展、功能
ImportError:无法从“setuptools”(home/masoud/anaconda3/envs/tfgpu/lib/python3.7/site packages/setuptools/_init.py)导入名称“Feature”
----------------------------------------
错误:命令出错,退出状态为1:python setup.py egg_info检查日志以获得完整的命令输出。
该错误已修复,但
deepdyn
1.0版。这可能是
deepdyn
中的一个bug,应该是


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

这是上游的问题。请参阅下面的特定软件包。依赖项问题是Try==>pip install--upgrade pip setuptools==44.1.0这在这里被记录为一个问题