VScode配置Python环境更新pip报错——ERROR: Could not install packages due to an EnvironmentError: [WinError 5]
2020-02-12 16:49
666 查看
VScode配置Python环境更新pip报错——“ERROR: Could not install packages due to an EnvironmentError: [WinError 5]”
1、问题描述
在配置python环境时提示有更高级pip版本可以使用,按照提示的操作语句
'python -m pip install --upgrade pip'输入后,出现报错(红字部分):
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。: ‘c:\program files\python38\lib\site-packages\pip-19.2.3.dist-info\entry_points.txt’
Consider using the
--useroption or check the permissions.
2、解决办法
按照提示
将操作语句改写为:
python -m pip install --user --upgrade pip
重新输入并运行:
更新成功!
- 点赞
- 收藏
- 分享
- 文章举报
相关文章推荐
- Python 更新pip报错:Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问
- python的pip10.1版本出现了安装包时的错误Could not install packages due to anEnvironmentError: [WinError 5] 拒绝访问
- windows 安装python pip Could not install packages due to anEnvironmentError: [WinError 5] 拒绝访问
- Could not install packages due to an EnvironmentError: [Errno 13] 权限不够: '/usr/local/lib/python3.5/di
- Pip "Could not install packages due to an EnvironmentError: Missing dependencies for SOCKS support."
- ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。
- Could not install packages due to an EnvironmentError: [WinError 5]
- Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问
- Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。
- pip安装出现Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '
- Could not install packages due to an EnvironmentError: [Errno 13] 权限不够: '/usr/local/lib/python2.7/di
- Could not install packages due to an EnvironmentError: [Erroe 13]
- Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory
- Could not install packages due to an EnvironmentError: Missing dependencies for SOCKs support
- Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory
- 安装QScintilla时报错:Could not install packages due to an EnvironmentError: [Errno 13] Permission denied:
- "Could not find conda environment: python37" 解决办法:通过Anaconda navigator 配置python环境
- 更新pip、python环境版本切换、apt安装pip时无法打开锁文件、Sub-process /usr/bin/dpkg returned an error code (1)错误
- Java运行环境的配置(Error: could not find java.dll/Eclipse:Error:could not find java SE Runtime Environment)
- python3.6.1环境配置出现Requirement already up-to-date: pip in c:\python36\lib\site-packages决解方案