![]() Python’s website maintains a list of all Python releases on this link: In case you did not have Python installed in the first place, you can install it as sudo through the following command after running apt-get update: $ sudo apt-get install python3 Manually Install Python from Source Now when you check the version number of Python, you will see an updated installation: ![]() The latest available version of Python will now be installed on your system. The system will also prompt you with a y/n option in order to confirm the upgrade please enter Y and then hit Enter to continue. The system might ask you the password for sudo as only an authorized user can add/remove and upgrade software on Ubuntu. Since we already have Python installed on our system, as verified in the previous section, we only need to upgrade it to the latest version as follows: $ sudo apt-get upgrade python3 Run the following command as sudo in order to do so: Advertisement $ sudo apt-get update First, you need to update your system repository index with that of the Internet so that the latest available version can be installed. Installing Python through the apt-get command is pretty simple. The following command will help you get a list of all Python versions you have on your system: $ apt list -installed | grep python You might also have several versions of Python installed on your system. The version number will appear as shown in the above output, depending on when you updated your system. We will do the same for Python by running the following command in our Terminal: $ python3 -V Check Current Python VersionĬhecking the current version of a software not only helps you get the version number of that software installed on your system but also verifies if the software is indeed installed on your system. You can open the Terminal either through the system Dash or the Ctrl+Alt+T shortcut. ![]() We are using the Ubuntu command line, the Terminal, for installation and set up a virtual programming environment. We have run the commands and procedures mentioned in this article on an Ubuntu 18.04 LTS system. The article will also help you in writing and running your first Python program, that will get you started with developing your own complex Python applications. In this article, we will install the latest version of Python3 on our Ubuntu system and then set up a virtual programming environment where you can write and execute your Python application programs. So as Linux users, you need to get a hold of how to install it and start writing your Python applications. Python just seems to be getting more and more popular with Linux developers and is arguably the best general-purpose language currently available. This increases the productivity for programmers as the edit-test-debug cycle becomes pretty fast. Programmers often prefer Python over other languages as in Python there is no separate compilation step. The Python interpreter and the extensive standard library are available in source or binary form without charge for all major platforms and can be freely distributed. It encourages program modularity and thus code reuse by supporting modules and packages based programming concept. It reduces the cost of program maintenance with its easy to learn syntax and high user readability. Python is an object-oriented, interpreted, high-level programming language created by Guido van Rossum and was first released in 1991.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |