8/15/2023 0 Comments Sudo apt upgrade python3This process uses downloading and compiling the source code from the developer. After finishing, refresh the package list again by entering the following commands: sudo apt update Step 4: Installing Python:Įnter the below commands to start the installation process sudo apt install python3.8 #(Here 3.8 is the Python version to be installed) Installing Python from source code: Go to the terminal of the system and enter the following command: sudo add-apt-repository ppa:deadsnakes/ppaĪfter entering the above command, the system shall ask you to hit the return key. We can also install related libraries like this: sudo apt install -y build-essential libssl-dev libffi-dev python3-dev Step 3: Adding Deadsnakes PPAĭeadsnakes PPA provides newer releases over the default Ubuntu repositories. The –y flag confirms that programmers have agreed for all items to be installed. We can also use different flags and properties while installing Python and its associated libraries. To install the supporting software, enter the following code in the terminal: sudo apt update The software-properties-common package provides better control over package manager because it allows adding PPA (Personal Package Archive) repositories. After opening the terminal, enter the following code: sudo apt update Step 2: Install a supporting software If Python isn't already there in the system, then follow the below steps to install: Step 1: Refresh and update repository listsįollow the steps from above to open the terminal. This command will display the current Python version number if it is already present or installed in the system.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |