Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I check the version of wxPython installed on my server?

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/

like image 233
ban Avatar asked Aug 09 '16 08:08

ban


1 Answers

Do as follows:

>>> import wx
>>> wx.version()
'3.0.2.0 msw (classic)'
>>> wx.__version__
'3.0.2.0'

If you want a one-liner on the command-line without using pip:

python -c "import wx;print wx.__version__"
like image 158
nepix32 Avatar answered Oct 02 '22 04:10

nepix32