1. 程式人生 > >解決Could not install packages due to an EnvironmentError: [WinError 5] 拒絕訪問。(win10下升級pip)

解決Could not install packages due to an EnvironmentError: [WinError 5] 拒絕訪問。(win10下升級pip)

一、問題描述

在dos下升級pip時,報錯如下:

“Could not install packages due to an EnvironmentError: [WinError 5] 拒絕訪問。: 'c:\\program files\\python37\\lib\\site-packages\\pip-10.0.1.dist-info\\entry_points.txt'
Consider using the `--user` option or check the permissions.”

 

二、問題分析

 

三、解決步驟

python -m pip install --user  --upgrade pip

 

推薦閱讀:

python的pip10.1版本出現了安裝包時的錯誤Could not install packages due to anEnvironmentError: [WinError 5] 拒絕訪問