安装wxPython报错——ERROR: Command errored out with exit status 1

在尝试使用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`来修复此问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

现象:
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

评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值