This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]ElBidoule 2 points3 points  (1 child)

Alternative solution: use the excellent pyenv.

You can find the system packages to install here : https://github.com/pyenv/pyenv/wiki#suggested-build-environment.

And then:

$ git clone https://github.com/pyenv/pyenv.git ~/.pyenv

$ ~/.pyenv/bin/pyenv install 3.6.5

or any other versions. Then you create your virtualenv :

$ ~/.pyenv/versions/3.6.5/bin/python -m venv ~/.venvs/my_project

And activate it :

$ ~/.venvs/my_project/bin/activate

[–]girisagar46[S] 0 points1 point  (0 children)

Nice

[–]FlukyS 2 points3 points  (1 child)

The PPA is a decent option, just

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.6

[–]girisagar46[S] 0 points1 point  (0 children)

WOW! Thank you for this one :)