在 Linux 发行版中安装 Miniforge 并换源

  1. 访问浙江大学镜像站当中的 Miniforge

浙江大学镜像站-Miniforge

  1. 选中合适的版本并下载,也可以直接执行下面的命令
bash 复制代码
cd ~
wget https://mirrors.zju.edu.cn/miniforge/Miniforge3-Linux-x86_64.sh
  1. 安装 Miniforge
bash 复制代码
./Miniforge3-Linux-x86_64.sh
  1. 安装完毕以后给 conda 和 mamba 换源
bash 复制代码
vim ~/.bashrc
bash 复制代码
custom_channels:
  conda-forge: https://mirrors.zju.edu.cn/anaconda/cloud
  msys2: https://mirrors.zju.edu.cn/anaconda/cloud
  bioconda: https://mirrors.zju.edu.cn/anaconda/cloud
  menpo: https://mirrors.zju.edu.cn/anaconda/cloud
  pytorch: https://mirrors.zju.edu.cn/anaconda/cloud
  pytorch-lts: https://mirrors.zju.edu.cn/anaconda/cloud
  simpleitk: https://mirrors.zju.edu.cn/anaconda/cloud

上面的配置包含了常用的源,如果有额外的需要,可以在浙江大学镜像站官网自己勾选

  1. 给 pip 换源
bash 复制代码
mamba activate base
pip config set global.index-url https://mirrors.zju.edu.cn/pypi/web/simple # 浙大源,仅推荐浙江大学校内使用
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/ # 阿里源
相关推荐
Csvn1 天前
🌟 LangChain 30 天保姆级教程 · Day 13|OutputParser 进阶!让 AI 输出自动转为结构化对象,并支持自动重试!
python·langchain
cch89181 天前
Python主流框架全解析
开发语言·python
sg_knight1 天前
设计模式实战:状态模式(State)
python·ui·设计模式·状态模式·state
好运的阿财1 天前
process 工具与子agent管理机制详解
网络·人工智能·python·程序人生·ai编程
张張4081 天前
(域格)环境搭建和编译
c语言·开发语言·python·ai
weixin_423533991 天前
【Windows11离线安装anaconda、python、vscode】
开发语言·vscode·python
Ricky111zzz1 天前
leetcode学python记录1
python·算法·leetcode·职场和发展
小白学大数据1 天前
Selenium+Python 爬虫:动态加载头条问答爬取
爬虫·python·selenium
Hui Baby1 天前
springboot读取配置文件
后端·python·flask
阿Y加油吧1 天前
回溯法经典难题:N 皇后问题 深度解析 + 二分查找入门(搜索插入位置)
开发语言·python