Conda查看、创建、删除虚拟环境等相关操作

1.cmd命令行调用。

2. 如何查看conda中创建的所有虚拟环境?

指令: conda env list

3.创建虚拟环境

4. 删除虚拟环境

conda remove -n xxxx(虚拟环境的名字) --all

5. 如何查看某虚拟环境的详细信息(如,有哪些包)

conda list -n xxxx(虚拟环境的名字)

6.查看conda的下载源

conda config --show channels

7.删除conda的下载源

①在全局的conda中删除channels

conda config --remove channels xxxxx(要删除的源名字)

②在当前虚拟环境中修改channels

conda config --env --remove channels xxxxx(要删除的源名字)

8.conda添加清华源

conda config --env --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
conda config --env --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
conda config --env --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch
conda config --env --set show_channel_urls yes
完事了以后,输入conda config --show channels,看一下是否添加成功。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值