使用yml文件安装环境时,如何添加conda和pip的镜像源

博客参考

添加conda镜像源

yaml 复制代码
name: NAME
channels:
  - conda-forge
  - pytorch
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
  - defaults
dependencies:
  - _libgcc_mutex=0.1=conda_forge
  - _openmp_mutex=4.5=2_kmp_llvm
  - ...

保留conda-forge

添加pip镜像源

yaml 复制代码
	- pip:
      - absl-py==1.4.0
      - aiohttp==3.8.3
      - aiosignal==1.3.1
      - ...
      - -i https://pypi.tuna.tsinghua.edu.cn/simple

在最后添加镜像

相关推荐
无糖冰可乐211 天前
安装wsl2,并链接Windows上的vscode运行项目
pytorch·vscode·python·pip
HAPPY酷4 天前
【ROS2】 Conda 环境搭建(命令行版)
linux·运维·python·ubuntu·机器人·conda
猫头虎4 天前
城市级IP代理:赋能全球企业本地化数字增长与安全合规 | Decodo 德口多
网络·python·网络协议·tcp/ip·安全·pandas·pip
Dxy12393102165 天前
如何使用Conda国内源安装虚拟环境(保姆级全平台教程)
conda
码上暴富5 天前
Conda从入门到精通的环境管理实战
conda
xin_yao_xin5 天前
Conda 环境的 CUDA PATH 配置指南
开发语言·python·conda·cuda
派葛穆8 天前
Python-pip切换镜像源
开发语言·python·pip
砍材农夫25 天前
python环境|conda安装和使用(1)
开发语言·后端·python·conda
匆匆整棹还25 天前
mamba的安装和版本对应
conda
master3361 个月前
python 安装pip
开发语言·python·pip