You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

A python virtualenv can be used to install python packages locally in your user account.  Some instructions are here.  It is available as a tool within psana.  Execute this command to create a new virtual environment (after setting up the psana psana environment):

virtualenv <directoryName>

where you replace <directoryName> with the name of the directory you would like to create.  Then activate your virtualenv like this:

source <directoryName>/bin/activate.csh     #use this for tcsh
 
or
 
source <directoryName>/bin/activate.sh      #use this for bash

Use "deactivate" to exit the virtualenv.  Install various packages using "pip install <packageName>" as show in these instructions.

  • No labels