简体   繁体   English

ModuleNotFoundError: No module named 'selenium' You are using pip version 9.0.1, 然而版本 19.3.1 is available error using selenium using ZA7F5F35426B927411FC9231B5Z6

[英]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.

相关问题 升级到 pip 版本 19.3.1 - Upgrading to pip version 19.3.1 Django/mod_wsgi/Apache - mod_wsgi 没有使用为它编译的 Python 版本 - “ModuleNotFoundError: No module named 'math'” - Django/mod_wsgi/Apache - mod_wsgi is not using the Python version it was compiled for - “ModuleNotFoundError: No module named 'math' ” 关于使用 Python 的 webbot 的 Selenium 版本的错误 - Error about Selenium version using Python's webbot ModuleNotFoundError:python selenium 中没有名为“autoit”的模块 - ModuleNotFoundError: No module named 'autoit' in python selenium 使用pip安装的selenium但是Python抛出错误 - Installed selenium using pip worked but Python throws an error 尝试通过在python中使用pyhs2连接到配置单元| 错误:ModuleNotFoundError:没有名为“ cloudera”的模块 - Try to connect to hive via using pyhs2 in python | Error : ModuleNotFoundError: No module named 'cloudera' 在 Windows 10 上使用 Python 3.7 时出现“ModuleNotFoundError: No module named 'pysqlcipher3'”错误 - "ModuleNotFoundError: No module named 'pysqlcipher3'" error while using Python 3.7 on windows 10 ModuleNotFoundError:没有名为“ selenium.webdriver.common”的模块 - ModuleNotFoundError: No module named 'selenium.webdriver.common' Python:没有名为 selenium 的模块 - Python : no module named selenium ModuleNotFoundError:没有名为“pip”python3的模块 - ModuleNotFoundError: No module named 'pip' python3
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM