問題:我在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和大約是一個獨立的錯誤。 –