python switched virtual environment

Every time the computer restarts, have cut into the virtual environment, the command always forget. If IDE, you can specify interpeter easily switch.

First conda info --env view the current environment there are few

 To activate / deactivate environment 

source activate the name of the environment

source deactivate environment name

 If windows, does not require previous source

 

Delete the environment

  conda remove -n name --all environment 
  Note: Before deleting an environment, it must first source deactivate

Guess you like

Origin www.cnblogs.com/marszhw/p/11301997.html