Page History
...
If you want to create a new environment with a selected set of packages use a command like this (after sourcing the appropriate psana1/psana2 setup script).
Code Block |
---|
conda env create --name roottest root psana |
If you want to get a conda environment with psana you can clone the psana environment into a local environment that you can control with a command like this (which will take some time because it has to copy several GB to the new environment):
Code Block |
---|
conda env create --name my-ana-1.3.10 --clone ana-1.3.10 |
...
Then activate your new environment with:
Code Block |
---|
sourceconda activate my-ana-1.3.10 |
Then install the conda-python package you want (potentially a specific version) using a command like:
...
A special installation area has been created for users to install conda environments to avoid using up home-directory quota space. Use commands similar to these to create your own environments:.
Code Block |
---|
source /sdf/cdsgroup/swlcls/ds/ana/sw/conda2conda1/manage/bin/psconda.sh # # for LCLS2LCLS1 environments. replace "conda2conda1" with "conda1conda2" for LCLS1LCLS2 # for the following 3 commands, change "my-h5-1.0.0" to the name of your environment export CONDA_PKGS_DIRS=/cds/sw/packagesdf/group/lcls/ds/tools/conda_envs/my-h5-1.0.0/.pkgs # avoids storing large package files in your home directory conda create --prefix /cds/sw/packagesdf/group/lcls/ds/tools/conda_envs/my-h5-1.0.0 --clone h5-1.0.0 # or "create" command from the previous section chmod -R +r /cds/sw/packagesdf/group/lcls/ds/tools/conda_envs/my-h5-1.0.0 # make directory world-readable |
...
A python virtualenv can be used to install python packages locally in your user account. Some instructions are here. Execute this command to create a new virtual environment (after setting up the psana environment):
Code Block |
---|
virtualenv <directoryName> |
...