以matplotlib 为例,直接在anaconda prompt 里面执行:pip install matplotlib 报以下错误
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
修改后:pip install --default-timeout=100 matplotlib依旧报错
最后搜了其他回答,增加了镜像地址,解决了!!
pip --default-timeout=100 install matplotlib==3.5.2 -i https://pypi.tuna.tsinghua.edu.cn/simple