2017-08-12 48 views
1

我是一个硒新手。硒3.5.0与旧版本

我在Python中使用selenium,今天我用pip升级到了硒3.5.0。一切顺利(见图)。

enter image description here

但如果我要问的硒版本我有一个不同的版本(3.4.3):

enter image description here

什么能是什么原因?我也尝试卸载(成功)并重新安装(成功)。但版本仍然是错误的。

我在做什么错了?

+0

你有Python 2和Python 3的在你的系统? – demouser123

+0

不,只有Python 3.6.1 –

回答

0

Python 3.6.1

  1. 要查看已安装的Selenium版本:

    pip show -V selenium 
    
  2. 要升级的Selenium的版本到最新版本:

    pip install -U selenium 
    
  3. 要卸载Selenium完全:

    pip uninstall selenium 
    
  4. 要安装的特定版本Selenium

    pip install selenium==3.5.0 
    
  5. Selenium的版本升级到一个特定的版本:

    pip install -U selenium==3.5.0