conda管理python虚拟环境


创建虚拟环境命令 conda create -n name py版本

生成的虚拟环境一般在anaconda env路径下删除虚拟环境:conda remove -n name --all

查看虚拟环境:conda info -e

切换虚拟环境:activate name

列出当前环境的所有包:conda list 

退出虚拟环境:conda deactivate

激活虚拟环境:source activate my_venv

重新选择python版本:conda install python=xxx(需要进入虚拟环境)