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

Viewed 55710

The title says it all, I want to programmatically get the version of Selenium I have installed on my Python environment.

4 Answers

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.

Please Use below command to see the version of the libraries that would have been installed using pip

pip freeze

It will list all the used libraries with their versions.

Try using pip show selenium, that worked for me

Related