pip镜像
-
利用pip镜像安装模块,以
Pycryptodome
、numpy
两个包为例演示 -
临时使用:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple Pycryptodome
pip install -i https://mirrors.aliyun.com/pypi/simple/ numpy
-
设为默认(指定为阿里镜像源):
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
-
设为默认(指定为清华镜像源):
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple