Skip to main content
 首页 » 编程设计

python之在 Ubuntu 11.10 上安装 wxPython

2025年05月04日18soundcode

希望有人能帮助我安装 wxPython。 我有 ubuntu 11.10,但没有构建包。 我使用此页面 ( http://wxpython.org/BUILD.html ) 作为安装指南 安装后,我运行

>python 
 
>>>import wx 
 
 Traceback (most recent call last): 
  File "<stdin>", line 1, in <module> 
  File "wx/__init__.py", line 45, in <module> 
    from wx._core import * 
  File "wx/_core.py", line 4, in <module> 
    import _core_ 
ImportError: libwx_gtk2u_adv-2.9.so.3: cannot open shared object file: No such file or directory 

应该如何解决? 谢谢!

请您参考如下方法:

关注the instructions for installing on Ubuntu or Debian .

编辑:实际上,您甚至不需要这样做,因为它是 in the main repos :

sudo aptitude install python-wxgtk2.8