Anaconda: Difference between revisions

From LWP-Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 4: Line 4:
To make Anaconda available in just your current ''bash'' session:
To make Anaconda available in just your current ''bash'' session:


   '''bash$''' source /opt/netapps/anaconda-lwp4/etc/profile.d/conda.sh # old lwp3 (Ubuntu 16.04)
   '''bash$''' source /opt/netapps/anaconda3/etc/profile.d/conda.sh     #   older lwp3 (Ubuntu 16.04)
   '''bash$''' source /opt/netapps/anaconda-lwp4/etc/profile.d/conda.sh # current lwp4 (Ubuntu 20.04)
   '''bash$''' source /opt/netapps/anaconda-lwp4/etc/profile.d/conda.sh # current lwp4 (Ubuntu 20.04)
   '''bash$''' conda activate
   '''bash$''' conda activate

Revision as of 12:23, 2 August 2021

The Anaconda Python distribution is available on LWP over and NFS mount. In order to use it on LWP instead of the locally installed Python, you need to load some environment variables into your shell.

To make Anaconda available in just your current bash session:

 bash$ source /opt/netapps/anaconda3/etc/profile.d/conda.sh     #   older lwp3 (Ubuntu 16.04)
 bash$ source /opt/netapps/anaconda-lwp4/etc/profile.d/conda.sh # current lwp4 (Ubuntu 20.04)
 bash$ conda activate

To have your shell startup files managed by Anaconda, so it will be available any time you start your shell:

 bash$ conda init

And after this, close and re-open your shell. Note that this last command also works with a select few other shells.

For more information see: