I would like to know how can i determine if wxpython is installed on ubuntu 12.04?
And i would like to know as well if ubuntu 12.04 already has wxpython installed by default?
To see if wxpython is installed we may try to import it in the Python interpreter:
>>> import wx
In a script, we can also check for wxpython with:
#!/usr/bin/env python
try:
import wx
except ImportError:
print('wxpython is not installed')
In Ubuntu wxpython is not installed by default but we can easily install the basic Python modules (need 35.1 MB of disk space) with:
sudo apt-get install python-wxgtk2.8 python-wxtools
Still, additional packages may be needed for other applications. For further details on this also see
whereis wxpython
will show you if it's installed, and https://apps.ubuntu.com/cat/department/precise/accessories/?page=32 does not show it as included in the default executables. You may also find this page useful in installing it https://stackoverflow.com/questions/14007557/installing-wxpython-on-ubuntu-12-04