26 lines
761 B
Bash
26 lines
761 B
Bash
#!/bin/bash
|
|
# 配置Conda使用北外镜像源
|
|
# Configure Conda to use BFSU mirrors
|
|
|
|
echo "配置Conda镜像源..."
|
|
echo "Configuring Conda mirrors..."
|
|
|
|
# 添加conda-forge镜像
|
|
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/cloud/conda-forge/
|
|
|
|
# 添加main仓库镜像
|
|
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/pkgs/main/
|
|
|
|
# 添加free仓库镜像
|
|
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/pkgs/free/
|
|
|
|
# 显示当前配置
|
|
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."
|