学习备忘:
pip install xxx报错:
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fa07472ed90>: Failed to establish a new connection: [Errno 101] Network is unreachable')': /packages/dc/9e/b6a224937d7827d5cbbffa60543b493872d9750f69a5bc8256fd40846a02/rdt-1.5.0-py2.py3-none-any.whl
原因分析:
网络原因,大概率是源无法访问,常识更换国内源。
解决方案:
由于是公用机器,选择单次换源方案:
pip install xxx -i https://pypi.mirrors.ustc.edu.cn/simple/
也可按需选择不同的镜像:
【清华大学】 https://pypi.tuna.tsinghua.edu.cn/simple/
【阿里云】 http://mirrors.aliyun.com/pypi/simple/
【豆瓣(douban)】 http://pypi.douban.com/simple/