sh Conda命令

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh Conda命令相关的知识,希望对你有一定的参考价值。

# create a new conda environment in ./cenv, aliased to ccreate
conda create --prefix ./cenv python

# remove the environment
conda env remove -p <full path to environment>

# activate the environment, aliased to cact
conda activate ./cenv

# install package, best to do from within the environment and allow defaults which is to install from conda repos
# for python just use package name, for r, prefix with r-
conda install <package name>

# deactivate, aliased to cdeact
conda deactivate

# export packages to requirements.txt file
conda list -e > requirements.txt

# build from requirements.txt file - this doesn't work with Miniconda for some reason so need to just do the package install manually
conda create -p ./cenv --file requirements.txt

以上是关于sh Conda命令的主要内容,如果未能解决你的问题,请参考以下文章

python下 conda命令手册

conda安装过程和创建虚拟环境

conda 使用教程(linux)

sh Conda修订版

sh conda_repo_add

sh 清洁所有conda包