HOWTO: Run Python Scripts with a Specific Version

update-alternatives –install /usr/bin/python python /usr/bin/python2 1

update-alternatives –install /usr/bin/python python /usr/bin/python3 2

update-alternatives –install /usr/local/bin/pip pip /usr/local/bin/pip2 1

update-alternatives –install /usr/local/bin/pip pip /usr/local/bin/pip3 2

update-alternatives –config python

update-alternatives –config pip

Powered by BetterDocs

Leave a Reply