
You should be able to use the new version by running “python3.6” (so your version check would be “python3.6 -V”, not “Python-3.6 -V”). You might have already figured this out, but in case you haven’t – your comment uses an incorrect binary name. Pip 9.0.1 from /usr/local/lib/python3.6/site-packages (python 3.6) This will also configure PIP for you to install Python modules. Let’s check the version installed of python using the below command. Make altinstall is used to prevent replacing the default python binary file /usr/bin/python.įinally, you have successfully installed Python 3.6 on your system. With make command altinstall, to install it as separate Python, This will not overwrite the existing installation.

We use -enable-optimizations option with configure command to enable additional supports like SSL, bz2 support. Now use below set of commands to compile Python source code on your system. You can also download the 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 proceeding to the next steps.
