How to Install Multiple Python version on Ubuntu | Odoo Discussions

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
asalam alaikum friends my name is Muhammad yunice and I am AO technical developer in today's video we are going to talk about how to install uh two python versions uh on the same Ubuntu machine uh for example we have U Ubuntu 20.04 and we have already installed some uh Udo previous versions like 16 14 or U 15 so it is a chance that uh we have already installed or we are already using uh python 3.8 or 3.6 uh and now if you want to install uh Udo 17 so like the minimum requirement for oudo 17 is python 3.10 so in that case uh we need two different uh versions of python uh to be installed on orun to machine so in today's video I am just going to talk about how you can install it uh so first step is to update uh sud do AP PT update update your system and uh the purpose of this step is to ensure that your packages lists um are updated to the latest versions and that your system have the latest security pages and the second command for update is to uh sud do apt upgrade okay so everything is upgraded so uh there is something that needs to be removed so we can just uh run this command uh to REM remov it okay and yes okay so it will just take a bit of time to uh remove this so it is done so the next step is to U install the prerequisite the prerequisite package which is needed for uh managing of two different version of python is software property common uh this package is like necessary for the infra infrastructure of managing uh different uh software repositories so uh let me just uh add this command so do AP install software properties uh common okay software properties common okay sorry we made a mistake like this so we need to uh use this so uh it is already installed uh and uh the next thing is we need to add uh that check uh PPA personal package archive for python uh this adds the DAT Che PPA to your system the D Che uh PPA contains various versions of python including newer versions uh like newer ones not available in the default you represent so for this purpose we need to uh install this uh so do uh a ABT uh repository we need to add this uh repository like this PPA and then dat shakes uh snakes PPA okay so hit enter to install it and then uh press enter or cancel eding it we need to edit okay so it will be edit and um so once it's it's done we need to move to the next step so the next step is to uh update the list again uh which is this command so do a update so the this update um the packages list again to include uh the packages from this uh dead snakes PPA so uh it has been updated and then we can install python uh 3 uh1 so the command that we need to use is sudu AP install python uh sorry python 3.10 okay so hit enter and uh the install will uh get started so it will uh start downloading Python 3.10 and we'll start uh installing it it will just take a few uh seconds and after that we need to install pip also for uh uh python 3.0 so the purpose of installing pip is uh like uh this is a package manager to install uh python packages so um let me check python version 3.10 uh version and this so it is uh 31013 so it is the uh latest version and in order to install uh pip we need to First install uh python 3.10 data utils which is um the prerequisite for uh pip so uh let me just just install it AP install python 3.10 uh dist utils and yes so this will install this um package for us and then we need to download um the PIP package so which is um let me just copy the link from here so here is the link so you can just type the link from uh this pip dopy okay so it will start downloading pip okay so let me run a command so here you can see the PIP uh has been uh downloaded so we need to run a command python 3.10 so like we want to install it as a python uh 3.10 and then uh add the file name get PIP dopy okay so this will uh help us to install pip for us and then using the PIP we can install python 3.10 packages and let me just verify if pip is installed successfully python 3.10 um DM pip and then double version okay so uh pip is installed uh now if I want to check uh the Python 3 version this version so it will say like 3.8 so anything if I want to like create a virtual environment with python 3.8 I will have to use Python 3 and in case if I want to create it as a 3.10 so I can use this python 3.10 so um this is how you can uh use different python version on the same uh UB machine okay so the installation is done and uh thank you for watching this video If you enjoyed it uh please uh hit the like button and also um don't forget to share with your uh friends thank you
Info
Channel: Odoo Discussions
Views: 1,824
Rating: undefined out of 5
Keywords: python, ubuntu, linux, python tutorial, learn python, python programming, odoo, odoo tutorial, dual python versions
Id: 5lav51-E_Ro
Channel Id: undefined
Length: 7min 15sec (435 seconds)
Published: Fri Dec 01 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.