linux安装wxpython报错:error:subprocess-exited-with-error

linux上安装wxpython报错:

查资料发现windows或者mac就可以用上面的pip install -U wxPython

linux需要用另一种pip方法:pip install -U -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-16.04 wxPython

!!!如果还是报错的话,就用下面的方法:

1、首先需要查询当前ubuntu版本:

2、到wxpython官网下载对应ubuntu版本和python版本的.whl文件:


我是python 3.7,故下载了wxPython-4.0.6-cp37-cp37m-linux_x86_64.whl

3、然后在命令行窗口pip install xxx.whl:

显示successfully installed wxPython-4.0.6

验证一下,import wx没有报错,则成功:

来源:ling零零零

物联沃分享整理
物联沃-IOTWORD物联网 » linux安装wxpython报错:error:subprocess-exited-with-error

发表评论