How do I retrieve the version of Selenium currently installed, from Python

You can try:

  1. pip list

  2. conda list

or for example on MAC:

  1. brew list

And then check if and what version is in your installed package list.

For conda you might have different environments. Change it by conda activate myenv where myenv is the name of your second or more test environments.


Try using pip show selenium, that worked for me


As simply as

>>> import selenium
>>> selenium.__version__
'2.37.2'

or for command line:

$ python -c "import selenium; print(selenium.__version__)"
2.37.2