Skip to content

Instantly share code, notes, and snippets.

@arcaduf
Last active March 8, 2019 15:49
Show Gist options
  • Save arcaduf/7cf65fc0dc4ba35ee5bf394b7e707e10 to your computer and use it in GitHub Desktop.
Save arcaduf/7cf65fc0dc4ba35ee5bf394b7e707e10 to your computer and use it in GitHub Desktop.
Work with Anaconda @TOMCAT
Connect to the beamline: 'ssh -X arcadu_f@x02da-gw'.
Connect to a specific machine: 'ssh -X e14236@x02da-gws-3'.
Type: 'export PATH=/opt/psi/Programming/psi-python27/2.3.0/bin:$PATH'.
Type: 'export CONDARC=/afs/psi.ch/project/TOMCAT_pipeline/Anaconda/.condarc_py27ana230'.
Check that you have loaded the Anaconda python: 'which python'.
The result should be: '/opt/psi/Programming/psi-python27/2.3.0/bin/python'.
If you want to create a new environment/install additional packages/delete an environment, get an AFS token with: 'klog -principal afs_username'.
If you want to list the already existing environments, type: 'conda env list'.
Load the environment you like, in our case, 'iter-rec' is ok: 'source activate iter-rec'.
To install additional packages to a specific environment, type 'conda install -name env-name package'.
To remove an environment, type: 'conda remove -n env-name --all'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment