[英]ModuleNotFoundError: No module named 'selenium' You are using pip version 9.0.1, however version 19.3.1 is available error using selenium using Python
I wrote a python script and using selenium driver.我写了一个 python 脚本并使用 selenium 驱动程序。 I am getting the below error:
我收到以下错误:
from selenium import webdriver
ModuleNotFoundError: No module named 'selenium'
When I run the command: pip install selenium , the output is:当我运行命令时: pip install selenium , output 是:
Requirement already satisfied: selenium in d:\windows\system32\config\systemprofile\appdata\local\programs\python\python36\lib\site-packages
Requirement already satisfied: urllib3 in d:\windows\system32\config\systemprofile\appdata\local\programs\python\python36\lib\site-packages (from selenium)
You are using pip version 9.0.1, however version 19.3.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
Can you please help to resolve this.你能帮忙解决这个问题吗?
This error message...此错误消息...
Requirement already satisfied: selenium in d:\windows\system32\config\systemprofile\appdata\local\programs\python\python36\lib\site-packages
Requirement already satisfied: urllib3 in d:\windows\system32\config\systemprofile\appdata\local\programs\python\python36\lib\site-packages (from selenium)
You are using pip version 9.0.1, however version 19.3.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
...implies that you are using pip v9.0.1 which is pretty ancient. ...暗示您使用的是非常古老的pip v9.0.1 。 You need to update pip to the latest available version of
pip v19.3.1
using the following command from the command prompt:您需要使用命令提示符下的以下命令将
pip v19.3.1
更新到pip v19.3.1的最新可用版本:
python -m pip install --upgrade pip
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.