You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
679 B

# 添加Anaconda的TUNA镜像
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
# 设置搜索时显示通道地址
conda config --set show_channel_urls yes
# 创建虚拟环境
conda create -n rag python=3.10
# 查看当前存在哪些虚拟环境
conda env list
conda info -e
# 查看安装了哪些包
conda list
# 激活虚拟环境
conda activate rag
# 对虚拟环境中安装额外的包
conda install -n rag $package_name
# 删除虚拟环境
conda remove -n rag --all
# 删除环境中的某个包
conda remove --name rag $package_name
# 恢复默认镜像
conda config --remove-key channels