Django学习系列2:django环境中安装selenium并查看selenium版本号

时间:2024-09-22 18:05:50

在Django环境中安装selenium

(django) root@ranxf-TEST:/studydisk/Python_web_TDD/superlists# conda install selenium

查看版本selenium版本号

(django) root@ranxf-TEST:/studydisk/Python_web_TDD/superlists# pip show selenium
Name: selenium
Version: 3.141.

或者:

(django) root@ranxf-TEST:/studydisk/Python_web_TDD/superlists# python
Python 3.7. (default, Aug , ::)
[GCC 7.3.] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import selenium
>>> print(selenium.__version__)
3.141.