在 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/ # 阿里源
相关推荐
AI探索者6 小时前
LangGraph StateGraph 实战:状态机聊天机器人构建指南
python
AI探索者6 小时前
LangGraph 入门:构建带记忆功能的天气查询 Agent
python
FishCoderh8 小时前
Python自动化办公实战:批量重命名文件,告别手动操作
python
躺平大鹅8 小时前
Python函数入门详解(定义+调用+参数)
python
曲幽9 小时前
我用FastAPI接ollama大模型,差点被asyncio整崩溃(附对话窗口实战)
python·fastapi·web·async·httpx·asyncio·ollama
两万五千个小时12 小时前
落地实现 Anthropic Multi-Agent Research System
人工智能·python·架构
哈里谢顿15 小时前
Python 高并发服务限流终极方案:从原理到生产落地(2026 实战指南)
python
用户8356290780511 天前
无需 Office:Python 批量转换 PPT 为图片
后端·python
markfeng81 天前
Python+Django+H5+MySQL项目搭建
python·django
GinoWi1 天前
Chapter 2 - Python中的变量和简单的数据类型
python