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

python, selenium-webdriver

Solution

As simply as

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

or for command line:

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

Problem

How can I programmatically get the version of Selenium I have installed in my Python environment?

Original source

Related problems