Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Install Anaconda

Note: It’s not good practice to share environments with other users. Make sure make a backup of your startup file and that you launch a new terminal after the installation.  Example below is for bash.

Code Block
cp -p ~/.profile ~/.profile.orig

...

NOTE: The commands below only works on Conda 4.6 and newer. 

Permanently

Deactivating Anaconda Base Environment on Startup 

The following command will stop anaconda Anaconda from launching from the base environment upon launching terminal and from when opening new terminal windows.  

Code Block
conda config --set auto_activate_base false

The Command below will re-enable base environment on startupupon launching terminal and new terminal windows.

Code Block
conda config --set auto_activate_base true

Reference: https://stackoverflow.com/questions/54429210/how-do-i-prevent-conda-from-activating-the-base-environment-by-default/54489016#54489016


Temporarily

The following commands will temporarily activate and deactivate Anaconda in a single terminal window. Opening a new terminal window will open in anaconda's base environment 

Activating Anaconda 

Code Block
conda activate

Deactivating Anaconda 

...

Code Block
source deactivate

...


Deleting environments

https://iq.opengenus.org/delete-conda-environment/

...