1、下载conda

wget -c https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
# 指定安装目录
bash Miniconda3-latest-Linux-x86_64.sh -p /usr/local/conda3

/usr/local/conda3/bin/conda init bash

conda config --set auto_activate_base false
conda config --set env_prompt '({name})'

2、基本命令

创建虚拟环境

conda create -n mytest python==3.10.8 -y

激活环境

conda activate mytest

退出环境

conda deactivate

环境列表

conda env list

指定虚拟环境python安装依赖包

python -m pip install 包名 -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host=mirrors.aliyun.com

...后续补充

标签: none

添加新评论

icon_mrgreen.gificon_neutral.gificon_twisted.gificon_arrow.gificon_eek.gificon_smile.gificon_confused.gificon_cool.gificon_evil.gificon_biggrin.gificon_idea.gificon_redface.gificon_razz.gificon_rolleyes.gificon_wink.gificon_cry.gificon_surprised.gificon_lol.gificon_mad.gificon_sad.gificon_exclaim.gificon_question.gif