-
新建虚拟环境
1
2conda create --name my_env_name [python=3.9] # Create the environment from scratch
conda env create -f environment.yml # Create the environment from the environment.yml file -
列出所有虚拟环境
1
conda env list
-
激活虚拟环境
1
conda activate my_env_name
-
查看虚拟环境内安装包
1
2conda list -n my_env_name # deactivated
conda list # activated -
导出虚拟环境
1
conda env export > environment.yml
-
重建虚拟环境
1
conda env create -f environment.yml