Skip to content
Snippets Groups Projects
Commit 8433c816 authored by Mikhail Karnevskiy's avatar Mikhail Karnevskiy
Browse files

Add installation to vertual env

parent 4ee1ef00
No related branches found
No related tags found
1 merge request!226Feat: update installation
......@@ -35,6 +35,41 @@ After installation, you should make sure that the home directory is in the PATH
4. export PATH=$HOME/.local/bin:$PATH
Installation using virtual python environment
---------------------------------------------
Create virtual environment::
module load anaconda/3
python -m venv /path/to/new/virtual/environment
source /path/to/new/virtual/environment/bin/activate
Clone from git::
cd /path/to/packages
git clone https://git.xfel.eu/gitlab/detectors/pycalibration.git
cd pycalibration
Edit path to the python environment in the bin/activate.sh file. Change::
export PATH=/home/${USER}/.local/bin:$PATH
to::
export PATH=/path/to/new/virtual/environment/bin:$PATH
Install the package::
pip install -r requirements.txt
In additional install pyDetLib package, which is required for many notebooks::
cd /path/to/packages
git clone https://git.xfel.eu/gitlab/karaboDevices/pyDetLib.git
cd pyDetLib/lib
pip install -r requirements.txt
pip install .
Development Installation
------------------------
......
......@@ -2,4 +2,4 @@ source /etc/profile.d/modules.sh
module load anaconda/3
module load texlive
# export path to python environment
export PATH=$HOME/.local/bin:$PATH
export PATH=/home/${USER}/.local/bin:$PATH
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment