5/13/2023 0 Comments Install python 2 ubuntu![]() ![]() You can check what versions of Python are available on your system with the following command: ls /usr/bin/python* Install Python on Ubuntu (default version) In which case you should install Python 3 and update. If by any chance your system has Python 2.x installed, you can check so by running: python -V If Python is already installed, it will probably be a 3.x version of Python because Python 2 has already reached its EOL (End Of Life). ![]() If Python is not already installed (which in your case it probably isn’t), then you should get a result similar to this: -bash: /usr/bin/python3: No such file or directory ![]() This means that’s the Python version you have installed on your Ubuntu. Since you’re looking for this tutorial, we’re assuming it’s not, but just in case, you can check if Python is installed (and what version you’re using) with the following command: python3 -VĪn example output of that command is: Python 3.8.10 When prompted, in this step and others below, if you would like to continue with the installation, you need to enter “y”, as the prompt explains. Run the following commands to do so: sudo apt-get update sudo apt-get upgrade We’ll include all the commands that you can copy and explain every step in detail, but a very basic knowledge of using the terminal/CLI is preferred.Īs always, the first step is to update your system. Basic knowledge of using the CLI in Ubuntu.This tutorial was written and tested for Ubuntu 20.04 but it will work fine on any other version of Ubuntu or Ubuntu-based distro. If you want the hosting provider to install Python for you, then get a managed server from SolaDrive. If you need a server, you can get one from Vultr or Linode. This tutorial installs Python from the command line (terminal). An Ubuntu system (it can be your desktop or a server).This is what you’ll need to follow this tutorial: We’ll include step-by-step, beginner-friendly instructions for different versions of Python. In this tutorial, we’re going to show you how to install Python on Ubuntu. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |