基于Pythonpip⽤国内镜像下载的⽅法
异常信息:
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by ‘ReadTimeoutError(“HTTPSConnectionPool(host='', port=443): Read timed out. (read timeout=15)”,)': /simple/scipy/通过pip安装scipy、scikit-learn等库的时候,可能会报上⾯的错误,国内通过⼿段,是可能解决该问题的。下⾯给个不⽤的办法。
使⽤国内镜像下载python库的办法。
以下载pandas为例,终端输⼊命令(前提是python正确安装):
pip install --index pypi.mirrors.ustc.edu/simple/ pandas
以上这篇基于Python pip⽤国内镜像下载的⽅法就是⼩编分享给⼤家的全部内容了,希望能给⼤家⼀个参考,也希望⼤家多多⽀持。
>connect下载