-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·16 lines (15 loc) · 857 Bytes
/
install.sh
File metadata and controls
executable file
·16 lines (15 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#This guide assumes you have a Python 3 interpreter and pip (pypi) on your system. If not, install from your distribution's package management system.
# We install all required Python packages in a virtual environment, so packages do not interfere with the systemwide installation.
export PATH=$PATH:~/.local/bin
# Create virtual environment
python3 -m venv ph-env
# Activate virtual environment
source ph-env/bin/activate
# All required packages are instlled via pip in the virtual environment
#First, install some packages separately, they are needed for building the rest
pip3 install wheel cython numpy
pip3 install -r requirements.txt
# Remove (possibly) existing Jupyter kernel with name ph-env
rm -rf ~/.local/share/jupyter/kernels/ph-env
# Kernel is configured to work with the virtual environment
python3 -m ipykernel install --user --name ph-env