1.pip 更新报错
1.在file中找到setting
2.找到Project:..中的Python Interpreter
3.图中的地址打开cmd
使用:python -m pip install --upgrade pip
如果还是不行就试试:python -m pip install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple
2.出现“Error ......”的情况(自己遇到了这两种情况)
1.Error occurred when installing package xxx
cmd打开
输入pip install https://pypi.tuna.tsinghua.edu.cn/simple 库名
2.出现 Error:Cannot unpack file…情况
使用:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn 库名文章来源:https://www.toymoban.com/news/detail-448876.html
如果看完觉得有收获,欢迎点赞、评论、分享支持一下。你的支持和肯定,是我坚持写作的动力!文章来源地址https://www.toymoban.com/news/detail-448876.html
到了这里,关于解决pip 更新报错,以及pycharm出现“Error occurred when installing package xxx”或者“Error:Cannot unpack file”的情况的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!