Installing multiple Python versions


Compiling a new version

<bash>
wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz
tar xzvf Python-3.6.0.tgz
cd Python-3.6.0/
./configure --prefix=/usr/local/python/python3.6
make
make altinstall

Installing pip

<bash>
wget https://bootstrap.pypa.io/get-pip.py
/usr/local/python3.6/bin/python3.6 get-pip.py --prefix=/usr/local/python/python3.6/

Installing a module

<bash>
/usr/local/python/python3.6/bin/pip3 install argcomplete


© 2008-2017 Patrick Lambert - All resources on this site are provided under the MIT License - You can contact me at: dendory@live.ca