现象:
pip install robotframework-ride时
安装wxPython-4.0.7.post2.tar.gz报错:
ERROR: Command errored out with exit status 1:
command: /usr/bin/python2 -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-cG1Vro/wxpython/setup.py’"’"’; file=’"’"’/tmp/pip-install-cG1Vro/wxpython/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-RUt4iK
cwd: /tmp/pip-install-cG1Vro/wxpython/
Complete output (1 lines):
error in wxPython setup command: ‘install_requires’ must be a string or list of strings containing valid project/version requirement specifiers
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
解决:pip install setuptools -U
安装wxPython报错——ERROR: Command errored out with exit status 1
最新推荐文章于 2025-03-30 22:17:16 发布
在尝试使用pip安装robotframework-ride时遇到错误,安装wxPython 4.0.7.post2过程中报错,错误信息提示'ERROR: Command errored out with exit status 1'。错误原因与wxPython的setup命令中'install_requires'参数有关。解决方案是先升级setuptools,通过命令`pip install setuptools -U`来修复此问题。

最低0.47元/天 解锁文章
4123

被折叠的 条评论
为什么被折叠?



