How do I retrieve the version of Selenium currently installed, from Python
Question:
The title says it all, I want to programmatically get the version of Selenium I have installed on my Python environment.
Answers:
As simply as
>>> import selenium
>>> selenium.__version__
'2.37.2'
or for command line:
$ python -c "import selenium; print(selenium.__version__)"
2.37.2
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.
You can try:
-
pip list
-
conda list
or for example on MAC:
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
download pip to anaconda then pip install selenium through anaconda prompt
The title says it all, I want to programmatically get the version of Selenium I have installed on my Python environment.
As simply as
>>> import selenium
>>> selenium.__version__
'2.37.2'
or for command line:
$ python -c "import selenium; print(selenium.__version__)"
2.37.2
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.
You can try:
-
pip list
-
conda list
or for example on MAC:
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
download pip to anaconda then pip install selenium through anaconda prompt