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 @   SuuTTT  阅读(56)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
历史上的今天:
2018-03-11 CodeForces - 669D Little Artem and Dance 想法题 多余操作
点击右上角即可分享
微信分享提示