python-3.6 - 命令出错,退出状态为 1:python setup.py egg_info
问题描述
WARNING: The wheel package is not available.
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python3.6 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-nu9_zlgc/numexpr/setup.py'"'"'; __file__='"'"'/tmp/pip-wheel-nu9_zlgc/numexpr/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-wheel-nu9_zlgc/numexpr/pip-egg-info
cwd: /tmp/pip-wheel-nu9_zlgc/numexpr/
ERROR: Failed building wheel for numpy
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-tr7p7knw/numpy/setup.py'"'"'; __file__='"'"'/tmp/pip-wheel-tr7p7knw/numpy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' clean --all
cwd: /tmp/pip-wheel-tr7p7knw/numpy
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-wheel-nu9_zlgc/numexpr/setup.py", line 228, in <module>
setup_package()
File "/tmp/pip-wheel-nu9_zlgc/numexpr/setup.py", line 224, in setup_package
setup(**metadata)
File "/usr/local/lib/python3.6/site-packages/setuptools/__init__.py", line 144, in setup
_install_setup_requires(attrs)
File "/usr/local/lib/python3.6/site-packages/setuptools/__init__.py", line 139, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "/usr/local/lib/python3.6/site-packages/setuptools/dist.py", line 721, in fetch_build_eggs
replace_conflicting=True,
File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 782, in resolve
replace_conflicting=replace_conflicting
File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1065, in best_match
return self.obtain(req, installer)
File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1077, in obtain
return installer(requirement)
File "/usr/local/lib/python3.6/site-packages/setuptools/dist.py", line 777, in fetch_build_egg
return fetch_build_egg(self, req)
File "/usr/local/lib/python3.6/site-packages/setuptools/installer.py", line 130, in fetch_build_egg
raise DistutilsError(str(e))
distutils.errors.DistutilsError: Command '['/usr/local/bin/python3.6', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpxhcxiwia', '--quiet', 'numpy>=1.7']' 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.
error: Command '['/usr/local/bin/python3.6', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpgvr79eoz', '--quiet', 'numexpr>=2.6.2']' returned non-zero exit status 1.
Python 版本 3.6.0,操作系统:Ubuntu 16 和 18,操作系统:Rhel 7.3
运行以下命令时遇到上述错误
sudo python3.6 setup.py install sudo python3.6 setup.py test
解决方案
推荐阅读
- html - Html/Css font-family 不显示某些元素的字体
- javascript - 设置状态后渲染组件不更新
- flutter - Flutter 如何用导航去掉底部导航
- .net - 为什么我需要在 Framework .exe 项目中引用 .net 标准库,而它们仅用于 Framework .dll 项目中?
- list - TCL - 变量列表
- r - R语言:将带有规则点的图像转换为数据框
- java - 将 Double.parseDouble 用于已被强制转换为字符串的对象时出错
- r - 如何有效地更新 data.table 条件上的相关条目 data.frame 现有?
- android - 如何检测用户早上开始使用手机的时间
- python - 从 np.array 生成成对列组合