On Sat, 7 Apr 2018, Norbert Lange wrote:

it appears that the files are installed in a subdirectory,
potentially to avoid confligs with previous versions?
result is that

import wx fails with

ImportError: No module named wx

I havent found a way to configure the installation

The purpose of the python-wxgtk4.0 package is primarily for application developers to use in porting their applications to wxPython 4.0 (Phoenix). There isn't much of a reason otherwise to use the Python 2 version of wxPython 4.0. Instead, you should use python3-wxgtk4.0 with which you can 'import wx'.

If you really would like to use the Python 2 version, you can do:

import wx


Reply via email to