python报错ERROR: Could not find a version that satisfies the requirement request ERROR: No matching di

问题:

python使用pip命令安装/导入第三方包,报错:ERROR: Could not find a version that satisfies the requirement request
ERROR: No matching distribution found for request

 

解决办法:

1、电脑桌面,同时按住Win+R,打开运行,录入:cmd,进入cmd命令界面;

python报错ERROR: Could not find a version that satisfies the requirement request ERROR: No matching di_第1张图片

2、录入:pip install 包名 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

以导入包:selenium 为例,例如:pip install selenium -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com   点击enter即可(据说是因为网络不稳定导致的报错)

结果:

 

你可能感兴趣的:(python,python)