hujiyi / blogcomments

0 stars 0 forks source link

Python pip 使用国内镜像源 | Laohoo #44

Open hujiyi opened 2 years ago

hujiyi commented 2 years ago

https://hujiyi.github.io/2021/12/21/pip-config-sources/

1、执行以下两个命令,设置全局使用国内源(中科大) 123pip config set global.index-url https://mirrors.ustc.edu.cn/pypi/web/simplepip config set global.trusted-host https://mirrors.ustc.edu.cn/pypi/web/simple 2、输出(查看)现有的pip源: