摸索了好長時間,最終找到靠譜的方法。
執行下面兩條命令:
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/。
pip config set install.trusted-hostmirrors.aliyun.com
以上是設置國內的阿里鏡像源,圖1顯示下載速度。
查看配置文件命令是:pip config list
如圖2
與大家分享的目的是,希望大家不要再走彎路,拿來就用,節省時間,提高效率。

加入收藏