I'm trying to install wxPython on Ubuntu 16.04. I'm aware of this question and related answer. In particular, if I run a .py file that uses wxPython python3: wxPython_HelloWorld.py
(copy-pasted from the introductory page to wxPython)
I get the error message:
Traceback (most recent call last):
File "wxPython_HelloWorld.py", line 2, in <module>
import wx
ImportError: No module named 'wx'
But python-wxgtk3.0 is installed. Indeed, running the installation command sudo apt-get install python-wxgtk3.0
returns:
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-wxgtk3.0 is already the newest version (3.0.2.0+dfsg-1build1).
0 upgraded, 0 newly installed, 0 to remove and 79 not upgraded.
Does anybody have a guess about what the problem could be?
sudo apt-get upgrade
? – M. Becerra Feb 22 '17 at 12:13