pip install 时报错 ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问(已解决)

pip install 时报错 ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问(已解决)

这是报错截图:
在这里插入图片描述
解决方案如下:
在pip install 后面加上 --user + 需要安装的包名
例如:

pip install --user imblearn
这样就能够安装成功了!
在这里插入图片描述

原创文章 14 获赞 27 访问量 1127

猜你喜欢

转载自blog.csdn.net/weixin_44827418/article/details/105443681