解决pip 更新报错,以及pycharm出现“Error occurred when installing package xxx”或者“Error:Cannot unpack file”的情况
解决pip 更新报错,以及pycharm使用setting安装库文件出现“Error ......”的情况
·
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 库名
如果看完觉得有收获,欢迎点赞、评论、分享支持一下。你的支持和肯定,是我坚持写作的动力!
更多推荐
已为社区贡献1条内容
所有评论(0)