Installing python3.6 on Debian Jessie

On Debian Jessie, apt-get will install Python3.4. To install Python 3.6 from source and create a virtual environment is trivial.

tar xvf Python-3.6.0.tgz
cd Python-3.6.0
./configure --enable-optimizations
make -j8
sudo make altinstall

Then, to create a python3.6 virtual environment

python3.6 -m venv my_env
source my_env/bin/activate
python --version # 3.6.0!

Leave a Reply

Your email address will not be published. Required fields are marked *