更換pip源:
1、在windows文件管理器中,輸入 %APPDATA%
2、在該目錄下新建pip文件夾,然后到pip文件夾里面去新建個pip.ini文件
3、在新建的pip.ini文件中輸入以下內容
[global]
timeout = 6000
index-url = http://pypi.douban.com/simple
trusted-host = pypi.douban.com
更換conda源:
1、在cmd下輸入:conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
2、在cmd下輸入:conda config --set show_channel_urls yes