![]() As we are going to keep the source code for Python. So let’s create a folder named as “python-setup” in this folder. $ sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev wget -y $ mkdir python-setup & cd python-setup But before that, we install the dependencies packages using the apt command. After downloading into the local system compile the source code. So let’s download the latest version of python from the official website. We will press “Enter” to continue and it will add and update the repo. So it will prompt on the terminal “Press to continue or Ctrl-c to cancel adding it.”. $ sudo apt install software-properties-common -y $ sudo add-apt-repository ppa:deadsnakes/ppa ![]() But before that, we have to install the package named as “software-properties-common”. Then you try adding the deadsnakes repository on the Ubuntu system. If you are not able to install with the above method. How to Install Python 3 by adding repository. ![]() Once installed you can verify the version for Python using the below command. We have updated the repository present in the Ubuntu 18.04. These Python packages are the official from the Ubuntu repositories. So to install, this is the easiest method, we have to update the repository and install the package. ![]() How to Install Python 3 using apt command. So let’s look at the 3 ways to install Python 3 on Ubuntu 18.04 LTS. The System administration tools like Ansible, Salt and OpenStack are in Python. You can use Python for Web, GUI, and Software Development. Python is one of the most popular languages over the globe. Now Python is the most important for Machine Learning and Data Science. Python is a high-level, interpreted programming language. After the installation, we can run a source code for python. You can check your python version by using “python –version” or “python3 –version”. python2 and python3 already come with the Ubuntu 18.04. In this tutorial, we will cover “How to install Python 3 on Ubuntu 18.04 LTS in 3 ways”.
0 Comments
Leave a Reply. |