1. To create a virtual environment:
python3.7 -m venv MyPy37
2. To activate that environment and ensure that it is then the python that is found by default:
source MyPy37/bin/activate
which python
python -c "import sys; print(sys.prefix)"
3. If your linux distro is one for which we build binary wheels, then you can install wxPython with a command like this:
4. Test that your venv python can find the wx module:
python -c "import wx; print(wx.version())"
--
Robin