Install virtualenv
sudo apt install python-pip
pip install virtualenvwrapper
Add two lines to /.bashrc (/.profile)
export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/Devel
# load virtualenvwrapper for python (after custom PATHs)
venvwrap="virtualenvwrapper.sh"
/usr/bin/which $venvwrap
if [ $? -eq 0 ]; then
venvwrap=`/usr/bin/which $venvwrap`
source $venvwrap
fi
Run script
. ~/.local/bin/virtualenvwrapper.sh
Create virtual environment for matching app
mkvirtualenv -p python3.5 pca
pip install -r requirements.txt
pip install .
pytest tests
python demo.py