使用清华大学源官网上的方法更换后,结果还是自动去piwheels里检索,发现需要修改两个源
第一个是global,可以参考清华大学的方法
pypi | 镜像站使用帮助 | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror
python -m pip install --upgrade pip
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
第二个是extra
sudo nano /etc/pip.conf
添加
extra-index-url=https://mirrors.aliyun.com/pypi/simple
参考链接