python

Ubuntu 18.04 - bionic beaver....

focus on python 3:

decided to use repository pip rather than get-pip.py that installs the pip from pypa (python packaging authority - WOW what a heavy name in FOSS world).

apt-get install python3-pip python3-venv

Getting virtualenv & wrapper working:

the repository virtualenvwrapper is for python2. So need to pip install the wrapper and then get it working. The following installs this system wide rather than for one user (https://medium.com/@gitudaniel/installing-virtualenvwrapper-for-python3-ad3dfea7c717)

pip3 install virtualenvwrapper

edit .bashrc and add:

## to get python virtual env working

export WORKON_HOME=/home/<name>/bigDISK/python_proj

export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3

source /usr/local/bin/virtualenvwrapper.sh

the default dir ...map it to the bigDISK directory.

ln -s ~/bigDISK/python_proj/virtualenvs ~/.virtualenvs

ref: https://virtualenvwrapper.readthedocs.io/en/latest/install.html#python-interpreter-virtualenv-and-path