


Step 4 – Check the Python VersionĬheck the latest version installed of python using below command. Make altinstall is used to prevent replacing the default python binary file /usr/bin/python. Use below set of commands to compile python source code on your system using altinstall. You can also download latest version in place of specified below. Sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-devĭownload Python using following command from python official site. sudo apt-get install build-essential checkinstall

Use the following command to install prerequisites for Python before installing it. Just follow this steps (tested) : Step 1 – Install Required Packages
