Python安装包或者更新包因为网速过慢下载失败解决办法

今天安装pyinstaller遇到了
以pandas为例pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pandas
就好了。

还可以修改默认时间

pip --default-timeout=100 install selenium(包名)

在这里插入图片描述

另外python网络问题报错的方式有以下两种:
一种是报错末尾有timeout
一种是:
ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.
pyinstaller from https://files.pythonhosted.org/packages/3c/c9/c3f9bc64eb11eee6a824686deba6129884c8cbdf70e750661773b9865ee0/PyInstaller-3.6.tar.gz#sha256=3730fa80d088f8bb7084d32480eb87cbb4ddb64123363763cf8f2a1378c1c4b7:
Expected sha256 3730fa80d088f8bb7084d32480eb87cbb4ddb64123363763cf8f2a1378c1c4b7
Got 8441b766f3e7dcbc21b65713efe449b3a00bfceba0ee50682d5adf30cec28059

参考:https://www.cnblogs.com/maoguy/p/6689512.html

发布了14 篇原创文章 · 获赞 0 · 访问量 771

猜你喜欢

转载自blog.csdn.net/kunAUGUST/article/details/104396472