Below are the list of commands to install python3.7.3 in any linux machine Update the packages and install required dev packages sudo apt update sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev wget Download python from repo and untar curl -O https://<python-code-hosting>/python-dist/3.7.3/Python-3.7.3.tgz tar zxvf Python-3.7.3.tgz To check dependencies on your system and optimize the Python binary for your system cd Python-3.7.3 ./configure --enable-optimizations Running build process with every processor in your machine make -j `nproc` To install python 3.7.3 sudo make altinstall Validate the installation python3.7 --version