pip更改为国内源:
在如上图所示的位置创建名为pip的文件夹,然后在文件夹下创建pip.ini(可用txt创建后修改后缀)
将以后内容复制进去保存即可
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host = mirrors.aliyun.com
仅适用一次在代码后加 -i https://pypi.tuna.tsinghua.edu.cn/simple
-i http://mirrors.aliyun.com/pypi/simple/
conda更改国内源:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes