

The general principles of this tutorial will apply to any distribution of Debian Linux. Programming on a server has many advantages and supports collaboration across development projects. This tutorial will get your Ubuntu 18.04 server set up with a Python 3 programming environment. Python 3 is the most current version of the language and is considered to be the future of Python.


Quick to set up, and written in a relatively straightforward style with immediate feedback on errors, Python is a great choice for beginners and experienced developers alike. First published in 1991 with a name inspired by the British comedy group Monty Python, the development team wanted to make Python a language that was fun to use. In this example, choose 1 to select Python 2.Įven though Python 2 is deprecated, it's still possible to install and use with your Vultr VPS running Ubuntu 20.04.Python is a flexible and versatile programming language that can be leveraged for many use cases, with strengths in scripting, automation, data analysis, machine learning, and back-end development. Press to keep the current choice, or type selection number: 1Įnter your selection. There are 2 choices for the alternative python (providing /usr/bin/python). $ sudo update-alternatives -config python $ sudo update-alternatives -install /usr/bin/python python /usr/bin/python3 2Ĭonfirm that both alternatives are ready to be used: $ sudo update-alternatives -list python $ sudo update-alternatives -install /usr/bin/python python /usr/bin/python2 1 Update-alternatives: error: no alternatives for pythonįor this example, we will set two Python alternatives: Python2 and Python3. See if there are Python alternatives configured. usr/bin/python2 /usr/bin/python2.7 /usr/bin/python3 /usr/bin/python3.8 $ sudo apt install python2Ĭheck what Python versions are available on system. SSH to your Ubuntu 20.04 server and install Python 2 with apt. Python 2 has been removed from Ubuntu 20.04, but if you have legacy programs that require the older Python, it's still possible to install and configure.
