

Restart your shell (close & open or exec $SHELL) or reload the profile script. Run the installer script (installs pyenv and some very useful pyenv plugins by the original author see here for more) curl -L | bashĪdd init lines to your ~/.profile or ~/.bashrc (it mentions it at the end of the install script): export PATH="$HOME/.pyenv/bin:$PATH" Sudo apt-get install -y libpng-dev libfreetype6-dev # optional scientific package headers (for Numpy, Matplotlib, SciPy, etc.) Sudo apt-get install -y build-essential libbz2-dev libssl-dev libreadline-dev \ the master branch of CPython fresh off GitHub: sudo apt-get install -y git Git is used by pyenv, plus it also enables builds/installs of source branches, so you could install whatever 3.8 is right now, i.e. Install tools and headers needed to build CPythons (exotic Pythons like PyPy or Jython may have other dependencies). See all the versions you can install with pyenv install -list Install pyenv It will generally work same day of a release because you don't need to wait for someone else to package it for Ubuntu. Plus, the answer to the follow-up question "How do I install Python 3.7 using apt-get?" has the same answer: pyenv update pyenv install 3.7.0. Everything runs as your user, so you don't have to worry about messing up the Python used by Ubuntu itself. You can build and install a new (or old) version of Python by simply saying pyenv install 3.6.0. It doesn't use Aptitude, and does involve "building it yourself", but it's fully automated.

Python Dictionaries Access Items Change Items Add Items Remove Items Loop Dictionaries Copy Dictionaries Nested Dictionaries Dictionary Methods Dictionary Exercise Python If.Else Python While Loops Python For Loops Python Functions Python Lambda Python Arrays Python Classes/Objects Python Inheritance Python Iterators Python Polymorphism Python Scope Python Modules Python Dates Python Math Python JSON Python RegEx Python PIP Python Try.I would recommend pyenv to solve your woes.
