|
Problem I try to run a Python application in [certain Linux distributions] on, but I got this error "ImportError:. No module named wxversion". How can I fix Python program this mistake?
Lookingfor python ... 2.7.9-Traceback (most recent call last):
File "/home/dev/playonlinux/python/check_python.py", line 1, in
import os, wxversion
ImportError: Nomodule named wxversion
failed tests
This error indicates that your Python application is GUI-based, rely on a lack of named wxPython modules. wxPython is a Python extension module for wxWidgets GUI library, C ++ programmers are commonly used to design the GUI application. The wxPython extensions allow Python developers to easily design and integrate any Python GUI applications.
Import shake resolve this error, you need to install wxPython on your Linux, as follows:
WxPython to install Debian, Ubuntu or Linux Mint
$ Sudo apt-get install python-wxgtk2.8
Install wxPython to Fedora
$ Sudo yum install wxPython
WxPython to install CentOS / RHEL
wxPython are available on the CentOS / RHEL to the EPEL repository, and there is no basic warehouse. Therefore, you must first enable the EPEL repository in your system, and then install it using yum command.
$ Sudo yum install wxPython
Arch Linux to install wxPython
$ Sudo pacman -S wxpython
WxPython to install Gentoo
$ Emerge wxPython |
|
|
|