Install Latest Python (3.7) on Ubuntu (Build From Source)

Aug 29, 2018

Install build dependencies

sudo apt-get build-dep python3.7

Check latest python download link.

wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tar.xztar xvf Python-3.7.0.tar.xzcd Python-3.7.0/./configuremake# sudo make installsudo make altinstall 

NOTE: make install can overwrite or masquerade the python3 binary. make altinstall is therefore recommended instead of make install since it only installs exec_prefix/bin/pythonversion.

Alternatively, you can install Python via apt-get.

The more flexible and safer solution would be via pyenv.

References:

❤️ Is this article helpful?

Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.

Do send some 💖 to @d_luaz or share this article.

✨ By Desmond Lua

A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz

👶 Apps I built

Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.