问题:我在Ubuntu 12.04上安装wxPython时遇到了问题。 我想找到一个简单,直接的方法来做到这一点。在Ubuntu上安装wxPython 12.04
我已经这样做了远:,我已经能够找到最相关的指令,到目前为止可以在这里找到:http://wiki.wxpython.org/InstallingOnUbuntuOrDebian
问题与这些说明的是,有没有可用的选择精确12.04。最新的发行版本是Natty 11.4。从我所能找到的方式来看,正确的方法是手动构建debian包,这里解释如下:http://wiki.wxpython.org/BuildingDebianPackages
尝试此操作并最终输入命令'fakeroot debian/rules binary'后,我得到以下错误:
debian/rules:14: /usr/share/quilt/quilt.make: No such file or directory
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
make: *** No rule to make target `/usr/share/quilt/quilt.make'. Stop.
我似乎无法解决这个错误,或找到任何其他适用于我的资源。我会在这里发布更多链接,但由于我是新手,垃圾邮件过滤器阻止我这样做。
结论:是否有人知道一个简单的解决方案,在Ubuntu 12.04精确的正确安装wxPython的?
更新:我想只是简单地使用apt-get命令 'sudo易于得到安装python-wxgtk2.8',我收到此(这似乎好):
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-wxgtk2.8 is already the newest version.
The following packages were automatically installed and are no longer required:
language-pack-zh-hans yaml-cpp language-pack-kde-en language-pack-kde-zh-hans language-pack-kde-en-base language-pack-zh-hans-base language-pack-kde-zh-hans-base
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 173 not upgraded.
但是,一旦我试图运行的东西,即“蟒蛇test_gui.py”,我得到以下错误:
Traceback (most recent call last):
File "test_gui.py", line 1, in
import wx
ImportError: No module named wx
我试图找出如何克服这些错误,并能够找到[this res我们](http://wiki.debian.org/Python/Policy),虽然我没有找到任何可以使用的信息。 因此,尝试所有的这些事情后,我做了一些更多的搜索,我发现[这](https://groups.google.com/forum/?fromgroups=#!topic/wxpython-users/SqybVaIi954y)和[本](http://wxpython-users.1045709.n5.nabble.com/ubuntu-installation-woes-td5714779.html)资源。 –
而且,有些只适用堆栈溢出职位,我能找到的是[这](http://stackoverflow.com/questions/5121574/wxpython-import-error),但它仅适用于Mac OSX和大约是一个独立的错误。 –