RingNet icon indicating copy to clipboard operation
RingNet copied to clipboard

Environment Error

Open zhyyfaan opened this issue 3 years ago • 2 comments

When I was setting the environment and installing the packages mentioned in the requirements.txt, I met an ERROR as follows: ERROR: Command errored out with exit status 1: command: /home/yifan/anaconda3/envs/ringnet/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-Ad2D66/pyrender/setup.py'"'"'; file='"'"'/tmp/pip-install-Ad2D66/pyrender/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-exZ7Iq cwd: /tmp/pip-install-Ad2D66/pyrender/ Complete output (29 lines): DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. ERROR: Package 'imageio' requires a different Python: 2.7.18 not in '>=3.5' Traceback (most recent call last): File "", line 1, in File "/tmp/pip-install-Ad2D66/pyrender/setup.py", line 70, in include_package_data=True File "/home/yifan/anaconda3/envs/ringnet/lib/python2.7/site-packages/setuptools/init.py", line 161, in setup _install_setup_requires(attrs) File "/home/yifan/anaconda3/envs/ringnet/lib/python2.7/site-packages/setuptools/init.py", line 156, in _install_setup_requires dist.fetch_build_eggs(dist.setup_requires) File "/home/yifan/anaconda3/envs/ringnet/lib/python2.7/site-packages/setuptools/dist.py", line 721, in fetch_build_eggs replace_conflicting=True, File "/home/yifan/anaconda3/envs/ringnet/lib/python2.7/site-packages/pkg_resources/init.py", line 782, in resolve replace_conflicting=replace_conflicting File "/home/yifan/anaconda3/envs/ringnet/lib/python2.7/site-packages/pkg_resources/init.py", line 1065, in best_match return self.obtain(req, installer) File "/home/yifan/anaconda3/envs/ringnet/lib/python2.7/site-packages/pkg_resources/init.py", line 1077, in obtain return installer(requirement) File "/home/yifan/anaconda3/envs/ringnet/lib/python2.7/site-packages/setuptools/dist.py", line 777, in fetch_build_egg return fetch_build_egg(self, req) File "/home/yifan/anaconda3/envs/ringnet/lib/python2.7/site-packages/setuptools/installer.py", line 130, in fetch_build_egg raise DistutilsError(str(e)) distutils.errors.DistutilsError: Command '['/home/yifan/anaconda3/envs/ringnet/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp4D3zxq', '--quiet', 'imageio']' returned non-zero exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

image

Could you please give me a favor?

zhyyfaan avatar May 25 '21 01:05 zhyyfaan

same error QAQ

zhanchao019 avatar Sep 25 '21 10:09 zhanchao019

It's a bit late but can be fixed by installing an older version of Imageio pip install imageio==2.6.1

zhanchao019 avatar Sep 25 '21 10:09 zhanchao019