mac python 安装第三方库,超时报错--Read timed out.快速解决

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.
Pillow from https://files.pythonhosted.org/packages/43/0e/db0117d3c810cc5c5d04802988be8983f4f51a78ae65d53bddcff68bf692/Pillow-7.1.1-cp37-cp37m-macosx_10_10_x86_64.whl#sha256=433bbc2469a2351bea53666d97bb1eb30f0d56461735be02ea6b27654569f80f:
Expected sha256 433bbc2469a2351bea53666d97bb1eb30f0d56461735be02ea6b27654569f80f
Got 4db89c6cbca695ece84f3ab5cea3bf112a03564574b8efb4c1f2d39f50a5c418

You are using pip version 10.0.1, however version 20.0.2 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.

解决方法,设置超时时间
pip --default-timeout=1000 install --upgrade pip
Collecting pip
Downloading https://files.pythonhosted.org/packages/54/0c/d01aa759fdc501a58f431eb594a17495f15b88da142ce14b5845662c13f3/pip-20.0.2-py2.py3-none-any.whl (1.4MB)
100% |████████████████████████████████| 1.4MB 24kB/s

你可能感兴趣的:(Python,笔记,开发经验总结)