conda doc

conda常用命令

创建环境

#从requirement txt 安装

Conda install --file

\#进阶

conda env export > environment.yml

 

conda env create -f environment.yml

#same server
conda create -n new-env --clone env-to-clone

 

#查看已有环境及内容 ?目前不知道同时查看的方法

conda info --envs

conda env list

改变版本

#改变当前环境python版本?目前不知道

 

 conda remove --name your_env_name --all

conda create --name new_env_name --clone old_env_name 

conda install -c channel_name package_name

Forge

Forge

conda-forge是可以安装软件包的附加渠道。从这个意义上说,它不是比默认频道或其他数百(数千个)频道中人们发布套餐所特有的更特别的。如果在https://anaconda.org注册并上传自己的Conda软件包,可以添加自己的频道。

conda install pyg -c pyg -c conda-forge

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge 
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
# 设置搜索时显示通道地址
conda config --set show_channel_urls yes
posted @ 2022-03-11 00:45  SuuTTT  阅读(49)  评论(0编辑  收藏  举报