centos7如何安装wxpython

在CentOS7上安装wxPython时遇到错误,通过执行Python命令安装失败。解决方法是根据GitHub上的提示,发现缺少一些依赖库。逐一安装这些依赖后,经过大约10分钟的等待,成功完成wxPython的安装。
摘要由CSDN通过智能技术生成

首先使用命令:

pip3 install wxpython

 结果报错如下:

Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-5r281uk1/wxpython/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-8met5905/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-5r281uk1/wxpython/

然后通过查看github可知:

缺少一下依赖库,需要一一安装:


    yum install -y dpkg-dev
    yum install -y SDL SDL-devel
    yum install -y build-essential
    yum install -y python3.6-dev # use appropriate Python version here
    yum install -y libjpeg-dev
    yum install -y libtiff-dev
    yum install -y libsdl1.2-dev
    yum install -y gtk3 gtk3-devel
    yum install -y libgstreamer-plugins-base0.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值