Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pycalibration
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
calibration
pycalibration
Commits
8433c816
Commit
8433c816
authored
5 years ago
by
Mikhail Karnevskiy
Browse files
Options
Downloads
Patches
Plain Diff
Add installation to vertual env
parent
4ee1ef00
No related branches found
No related tags found
1 merge request
!226
Feat: update installation
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.rst
+35
-0
35 additions, 0 deletions
README.rst
bin/activate.sh
+1
-1
1 addition, 1 deletion
bin/activate.sh
with
36 additions
and
1 deletion
README.rst
+
35
−
0
View file @
8433c816
...
...
@@ -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
------------------------
...
...
This diff is collapsed.
Click to expand it.
bin/activate.sh
+
1
−
1
View file @
8433c816
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment