Page History
...
Create and activate conda environment
module load python
See available conda environments and create one:
conda env list
conda env create --name ps<ps-0.1.1-py3 ...-environment-name> -f env_create.yaml
source activate ps<ps-0.1.1-py3...-environment-name>
where the file env_create.yaml
contains the list of require packages.
...
Code Block | ||||
---|---|---|---|---|
| ||||
channels: - defaults - conda-forge dependencies: - python=3.6 - cmake - h5py - ipython - numpy - cython - matplotlib - mongodb - pymongo - mpi4py - nose - pyzmq - versioneer - requests |
Build for python2.7
cd lcls2
export CRAYPE_LINK_TYPE=dynamic
./build_python2_psana.sh
export INSTDIR=`pwd`/install
export PYTHONPATH=$INSTDIR/lib/python2.7/site-packages
Build for python3.6
cd lcls2
export CRAYPE_LINK_TYPE=dynamic
./build_python3_
psanalight.sh
export INSTDIR=`pwd`/install
export PYTHONPATH=$INSTDIR/lib/python3.6/site-packages
Useful conda commands
conda list
conda env list
conda env remove --name ps-0.1.1-py3
Run apps
python
> import psana
...
Overview
Content Tools