I have Python and WxPython installed.
I want to check what is the version of WxPython installed.
Didn’t find the answer on https://wxpython.org/
Just like you would with every other Python library:
pip show WxPython
As I don’t have this library installed, I can only suggest that some libraries also provide a
EDIT: @nepix32’s answer provides the way it was implemented in
Do as follows:
>>> import wx >>> wx.version() '188.8.131.52 msw (classic)' >>> wx.__version__ '184.108.40.206'
If you want a one-liner on the command-line without using pip (Python 2.7):
python -c "import wx;print wx.__version__"
Of course in 2022 (Python 3, Python 2 is long gone now) is works like this:
python -c "import wx;print(wx.__version__)"