ImportError: cannot import name 'Feature' from 'setuptools
12,895
The bug was fixed in version 1.1 but deepdyn
requires version 1.0. This is probably a bug in deepdyn
and should be reported.
Or may be deepdyn
requires some older version of setuptools
. Again, ask the authors about it.
Author by
Max
Updated on June 19, 2022Comments
-
Max almost 2 years
I want to install the requirements of this https://github.com/sraashis/deepdyn project, but when I run:
pip install -r deepdyn/assets/requirements.txt
I receive the following error in the terminal:
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.
-
monofal almost 3 yearsHere's the command I had to use to resolve this
pip3 install setuptools==45