您的位置:首页 > 编程语言 > Python开发

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
--user
option or check the permissions.

2、解决办法

按照提示

将操作语句改写为:

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

重新输入并运行:

更新成功!

  • 点赞
  • 收藏
  • 分享
  • 文章举报
HAO亮 发布了2 篇原创文章 · 获赞 0 · 访问量 70 私信 关注
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐