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

时间:2021-11-06 17:06:58

 

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

 

一、当出现这个错误的时候一顿百度。

  1.从新卸载Python,安装3.6,还是不行

  2.从新卸载pip,单独安装.直接下载get-pip.py文件,执行命令python get-pip.py,还是不行

  3.也在Python/Script/下回复过文件,不行

  4.加上--trusted-host 执行 pip install xrld -i https://pypi.org/simple --trusted-host pypi.org,也是不行

二、运行,pip install selenum  和其它命令时,将其它程序关闭。天啊。成功了。

  PS:打开一些软件发现原来是抓包工具忘记了。元凶如下。

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

 

三、通过百度,也顺便把pip原资源给挂到阿里了,因为项目多是阿里云。这样安装东西,pip起来嗖嗖带风。如下:

  1.如图所示,在当前用户下创建pip.txt并改后缀:pip.ini

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

 

   2.如图编辑好,保存。

 

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

  3.本人用的是阿里源。其它配置如下:

    阿里云 http://mirrors.aliyun.com/pypi/simple/

    中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 

    豆瓣(douban) http://pypi.douban.com/simple/ 

    清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/

    中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/

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

  4.配置环境变量%HOMEPATH%\pip\pip.ini

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

  5.打开CMD  pip 就可以了。贼快。

  6.好了,齐活儿了,第一次写。不太好。取所需就好。