红联Linux门户
Linux帮助

Ubuntu 16.10下安装python-wxgtk2.8报错

发布时间:2017-04-13 10:01:48来源:blog.csdn.net/laizhenghong2012作者:wallace-lai
一、报错详情
事情是这样的,我准备在Ubuntu 16.10下安装wxPython。依据官方文档,我使用的命令是:
sudo apt-get install python-wxgtk2.8
但是却出现了下面的报错,如图所示:
Ubuntu 16.10下安装python-wxgtk2.8报错
出错信息为:
Reading package list... Done
Building dependency tree
Reading state information... Done
Package 'python-wxgtk2.8' is not available, but is referred to another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source.
E: Package 'python-wxgtk2.8' has no installation candidate
 
二、解决办法
报错的原因是python-wxgtk2.8包太旧了。可以安装python-wxgtk3.0包来代替。使用以下命令,即可完美解决。
sudo apt-get install wxgtk3.0
解决办法参考:
Ubuntu 16.10下安装python-wxgtk2.8报错
 
本文永久更新地址:http://www.linuxdiyf.com/linux/29955.html