python setup.py egg_info Check the logs for full command output 解决办法
ERROR:Command errored out with exit status 1:python setup.py egg_info Check the logs for full command output 解决办法问题描述:
ERROR:Command errored out with exit status 1:python setup.py egg_info Check the logs for full command output 解决办法
问题描述: 在Ubuntu16.04 ,python2.7 安装pyrender库报错 pip install pyrender0.1.30 -i https://pypi.tuna.tsinghua.edu.cn/simple
错误为:
ERROR: Command errored out with exit status 1:
command: /home/lzx/miniconda3/envs/RingNetT/bin/python -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-nji8KX/pyrender/setup.py’"’"’; file=’"’"’/tmp/pip-install-nji8KX/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-QtVRgJ
cwd: /tmp/pip-install-nji8KX/pyrender/
Complete output (26 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.
ERROR: Package ‘imageio’ requires a different Python: 2.7.13 not in ‘>=3.5’
Traceback (most recent call last):
File “”, line 1, in
File “/tmp/pip-install-nji8KX/pyrender/setup.py”, line 70, in
include_package_data=True
File “/home/lzx/miniconda3/envs/RingNetT/lib/python2.7/site-packages/setuptools/init.py”, line 161, in setup
_install_setup_requires(attrs)
File “/home/lzx/miniconda3/envs/RingNetT/lib/python2.7/site-packages/setuptools/init.py”, line 156, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File “/home/lzx/miniconda3/envs/RingNetT/lib/python2.7/site-packages/setuptools/dist.py”, line 721, in fetch_build_eggs
replace_conflicting=True,
File “/home/lzx/miniconda3/envs/RingNetT/lib/python2.7/site-packages/pkg_resources/init.py”, line 782, in resolve
replace_conflicting=replace_conflicting
File “/home/lzx/miniconda3/envs/RingNetT/lib/python2.7/site-packages/pkg_resources/init.py”, line 1065, in best_match
return self.obtain(req, installer)
File “/home/lzx/miniconda3/envs/RingNetT/lib/python2.7/site-packages/pkg_resources/init.py”, line 1077, in obtain
return installer(requirement)
File “/home/lzx/miniconda3/envs/RingNetT/lib/python2.7/site-packages/setuptools/dist.py”, line 777, in fetch_build_egg
return fetch_build_egg(self, req)
File “/home/lzx/miniconda3/envs/RingNetT/lib/python2.7/site-packages/setuptools/installer.py”, line 130, in fetch_build_egg
raise DistutilsError(str(e))
distutils.errors.DistutilsError: Command ‘[’/home/lzx/miniconda3/envs/RingNetT/bin/python’, ‘-m’, ‘pip’, ‘–disable-pip-version-check’, ‘wheel’, ‘–no-deps’, ‘-w’, ‘/tmp/tmpr4wIKB’, ‘–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.
在看了他人方法结合自己的情况得到的解决办法:
1.先更新pip和setuptools:
pip install --upgrade setuptools
python -m pip install --upgrade pip
2.pip install imageio2.6.1 -i https://pypi.tuna.tsinghua.edu.cn/simple
3.pip install pytest-runner -i https://pypi.tuna.tsinghua.edu.cn/simple
经过1、2后再尝试pip install pyrender==0.1.30 -i https://pypi.tuna.tsinghua.edu.cn/simple
最后成功,不报错
更多推荐
所有评论(0)