If you have installed any python versions from source , then also you can face this problem.
So
Follow these instructions and things should work out:
Open a terminal Ctrl+Alt+T(Open Applications menu, Accessories, Terminal). Run sudo nautilus
(no quotes), giving your password when prompted.
Using the file browser that opens, navigate to /usr/local/bin/
Delete the file called python
Go to /usr/bin/
Right-click the file called 'python' and click copy. Paste it into /usr/local/bin/
Go back to '/usr/bin/' and copy 'python2.6' and paste it into /usr/local/bin/
Do the same with the file called python2.6-config
Total credit goes to ubuntuforums.org
python
then once in the python shell, typeimport wxversion
. Make sure that you're running a Python 2.7.x version. If that spits out no errors then you should be fine. – Benjamin Jul 27 '14 at 04:09Traceback (most recent call last): File "", line 1, in
ImportError: No module named wxversion`
– LoadingPleaseWait Jul 28 '14 at 21:28sudo apt-get purge python-wxgtk2.8
, then run theinstall
command again. – Benjamin Jul 30 '14 at 05:21python-wxversion
package you can try installing. If that doesn't fix it, there's also the option of building from source: http://wiki.wxpython.org/How%20to%20install%20wxPython#Installing_wxPython_from_source – Benjamin Jul 30 '14 at 16:33python-wxversion
solved it for me (other steps didn't work) – Mark May 25 '15 at 09:21