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 库名
如果看完觉得有收获,欢迎点赞、评论、分享支持一下。你的支持和肯定,是我坚持写作的动力!