安装Miniforge

1. 下载Miniforge3-26.7.2-0-Windows-x86_64.exe,下载地址:https://github.com/conda-forge/miniforge/releases

2. 可以静默安装:

.\Miniforge3-26.7.2-0-Windows-x86_64.exe /S /InstallationType=JustMe /AddToPath=0 /RegisterPython=0 /D=G:\Miniforge3

3. 添加用户环境变量:G:\Miniforge3\condabin

4. 打开命令行窗口,执行命令创建.condarc到用户目录下

conda config --set show_channel_urls yes

5. 配置国内镜像源

channels:
  - conda-forge
  - nodefaults
mirrored_channels:
  conda-forge:
    - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
    - https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge
    - https://mirrors.zju.edu.cn/anaconda/cloud/conda-forge
    - https://conda.anaconda.org/conda-forge
    - https://prefix.dev/conda-forge

show_channel_urls: true

6. 在命令行窗口要conda init 把初始化脚本写入当前启动的 PowerShell 配置文件

conda init powershell

 

posted @ 2026-09-30 09:41  不夹心饼干  阅读(21)  评论(0)    收藏  举报