sudo update-alternatives --remove-all python
sudo update-alternatives --remove-all python3
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 0
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 0
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 1
# Login
$ devpi use http://localhost:3141
$ devpi login root --password=
$ devpi use root/pypi
# List indexes
$ devpi index -l
# Create index
$ devpi index -y -c public volatile=False
# fatal error: ffi.h: No such file or directory
$ sudo apt-get install libffi-dev
# Exception .... in <module> from Crypto.PublicKey import DSA
$ pip install pycrypto
# Upgrade all installed packages
$ pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U