pip安装第三方库出现拒绝访问Could not install packages due to an OSError: [WinError 5] 拒绝访问

项目场景:

提示:这里简述项目相关背景:
pip安装第三方库出现拒绝访问

Could not install packages due to an OSError: [WinError 5] 拒绝访问



原因分析:

提示:这里填写问题的分析:


可以先尝试卸载pip重

 C:\Users\Administrator\opencv\Scripts\python.exe -m pip uninstall pip

重新下载

python -m ensurepip

还是不行!!! 直接在文件夹里删除pip文件再进行下载pip

然后更新 –

 C:\Users\Administrator\opencv\Scripts\python.exe -m pip install --upgrade pip 

就好啦!

Installing collected packages: opencv-contrib-python
Successfully installed opencv-contrib-python-4.6.0.66

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