27 lines
767 B
Batchfile
27 lines
767 B
Batchfile
@echo off
|
|
REM 配置Conda使用北外镜像源
|
|
REM Configure Conda to use BFSU mirrors
|
|
|
|
echo 配置Conda镜像源...
|
|
echo Configuring Conda mirrors...
|
|
|
|
REM 添加conda-forge镜像
|
|
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/cloud/conda-forge/
|
|
|
|
REM 添加main仓库镜像
|
|
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/pkgs/main/
|
|
|
|
REM 添加free仓库镜像
|
|
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/pkgs/free/
|
|
|
|
REM 显示当前配置
|
|
echo.
|
|
echo 当前通道配置:
|
|
echo Current channel configuration:
|
|
conda config --show channels
|
|
|
|
echo.
|
|
echo 配置完成!现在可以使用 environment.yml 创建环境了。
|
|
echo Configuration completed! You can now create the environment using environment.yml.
|
|
pause
|