How to Build Python from Source
Installing Python is easy using the pre-built installers and packages from your operating system. However, if you want to build the cutting-edge version directly from GitHub master branch, you will have to build your own version from source. You may also want to do it just to reinforce your understanding of Python.
This guide will walk through the steps needed to build Python 3 from source and then create a virtual environment that you can use for projects.