当前位置:   article > 正文

ModuleNotFoundError: No module named ‘selenium‘_modulenotfounderror: no module named 'selenium

modulenotfounderror: no module named 'selenium

1. 安装selenium,命令行:

pip install -U selenium

报错:ModuleNotFoundError: No module named 'selenium'

2. 尝试各种镜像,还是报错,错误都一样:

pip install -U selenium -i https://pypi.org/project/selenium/

pip install selenium -i https://mirrors.aliyun.com/pypi --trusted-host mirrors.aliyun.com

pip install --index https://mirrors.ustc.edu.cn/pypi/web/simple/  selenium

python -m pip install selenium -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

pip install selenium -i https://selenium-release.storage.googleapis.com

pip install selenium -i https://mirror.baidu.com/pypi/simple

报错信息:

ERROR: Could not find a version that satisfies the requirement selenium (from versions: none)
ERROR: No matching distribution found for selenium

3. 终极方案,直接下载解压缩,分分钟搞定。命令行:python setup.py install

selenium · PyPIicon-default.png?t=N7T8https://pypi.org/project/selenium/#history

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/1009601
推荐阅读
相关标签
  

闽ICP备14008679号