- 在
cmd
中运行如下指令,即可设置默认为清华镜像
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
- 仅一次使用
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple packgename
cmd
中运行如下指令,即可设置默认为清华镜像pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple packgename