conda及pip的一些源配置

tech2026-06-20  1

python官方的镜像源:https://pypi.org/simple

conda切换为原来的镜像源:conda config --remove-key channels

conda添加单个源:conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/

删除conda单个源:conda config --remove channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free

设置:conda config --set show_channel_urls yes

windows下修改python的pip源,直接在user目录中创建一个pip目录,如:C:\Users\xx\pip,新建文件pip.ini,内容如下: [global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple

最新回复(0)