美文网首页
conda/pip 阿里云镜像设置

conda/pip 阿里云镜像设置

作者: 承诺一时的华丽 | 来源:发表于2023-12-11 18:24 被阅读0次
  • conda 阿里云镜像设置
conda config --add channels https://mirrors.aliyun.com/anaconda/pkgs/main/
conda config --add channels https://mirrors.aliyun.com/anaconda/pkgs/free/
conda config --add channels https://mirrors.aliyun.com/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.aliyun.com/anaconda/cloud/menpo/
conda config --add channels https://mirrors.aliyun.com/anaconda/cloud/bioconda/
conda config --add channels https://mirrors.aliyun.com/anaconda/cloud/msys2/

# 验证是否成功设置阿里云镜像
conda config --set show_channel_urls yes
  • pip 阿里云镜像设置
# 设置阿里云镜像
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
# 验证是否成功设置了阿里云的镜像
pip config list

相关文章

网友评论

      本文标题:conda/pip 阿里云镜像设置

      本文链接:https://www.haomeiwen.com/subject/eupmgdtx.html