使用清华源安装catboost,其他包同理
! pip install catboost -i https://pypi.tuna.tsinghua.edu.cn/simple
Anaconda 使用清华镜像
打开anaconda中的anaconda prompt,输入一下三步:
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
如图所示:
pip使用清华镜像
在user目录中创建一个pip目录,如:C:\Users\xx\pip,新建文件pip.ini,内容如下
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple