How To Update Python Command Line
As you all know, Python is the new tendency in the world of figurer programming. Working with the updated versions of python is more than fun considering it comes with more libraries for advanced programming.
Permit'south go to know that how to update python in Windows, Mac, and Linux, if you are already working with Python and desire an upgraded version
Requirement for Updating Python
There are two basic conditions for updating python in your operating system.
- If you have to switch betwixt ii major versions of python i.e. version 2 or version 3 then they will be installed in dissimilar directories on your PC.
- If you have to switch between two minor versions i.east. the latest version of serial two or the latest version of serial 3, just install them one over the other.
- Download the latest version from their website and run it on your PC. The files of the previous version will be removed and python is updated automatically.
- Make sure you are runinning the installer as an Admin, Or you might get an installer error.
You can choose the desired version later on installation using the following command
py - (your required version)
How to update Python in Windows 10
Python can be updated in Windows in multiple ways. Permit's discuss all of them below.
Video tutorial for windows 7, viii, 10.
Using python windows installer
Let'due south go to know about the way to update python using the python windows installer.
- Go to the python website i.e www.python.org.
- Go to Downloads and click View the full list of downloads
- Select your desired version.
- Select the installer according to your organization's processor i.east. 32-bit or 64-bit. Brand sure to select correct package to avoide this kind of fault.
- Click to open this executable file.
- Select both given options before installation; Install the Python for all users and add the Python.ext to the path.
- Select Customize Installation to customize the settings.
- Select your desired Optional Features and click NEXT. Select td/tk and IDLE to install Python IDLE which works as an IDE for Python code.
- Select your desired Avant-garde Features. And so click Browse to select the required path to save it on your PC. And so click Install.
- The installation process volition start.
- After installation, the python is prepare on your PC. Click Shut to cease the procedure.
- Open up a control prompt and apply either of the following commands to check the version of python on your PC.
>> python --version Python 3.viii.ii >> python -Five Python three.8.2 >> py --version Python 3.8.2 >> py -V Python three.8.ii
Using Chocolatey Software
Chocolatey is a software for Windows that automates the installation of any software for you. It wraps installers, executables, zips, and scripts into compiled packages.
Beginning of all, install the chocolatey software from www.chocholatey.org according to the given commands. And so follow the given steps to update python in windows.
- Open Windows Ability Beat or Command Prompt. Write choco list python.
- All the packages of python will exist listed below.
- If your arrangement has 64-bit windows then the latest version volition exist installed on it. Otherwise, if it is a 32-bit arrangement, the latest version starting with the python-x86_32 command will be installed.
- Beware of installing any package having a Maybe broken flag in forepart of it.
- At present write choco install python. The most recent version of python will get installed on your system.
- If your want to install python 2 then give the control choco install python2 and the latest version of python two will be updated on your arrangement.
- If you are asked to run any script and so write A then that all the side by side scripts will run automatically.
- The latest version has been updated on your PC.
- At present restart the PowerShell and give the following command to check the version installed on your PC.
python --version
How to update Python in MAC
There are 2 ways to update python on MAC. Both are explained in item beneath. Follow the steps carefully to omit any error you may run across.
Video tutorial to install/upgrade Python on Mac
Using Python Installer
The procedure to upgrade to python's latest version using python installer is as follows:
- Go to the python website i.e www.python.org.
- Get to Downloads and click View the full list of downloads
- Select your desired version.
- Select the MAC installer.
- Select the downloaded file.
- Open the downloaded file.
- The installer is opened. Read the introduction and click Go along.
- Read the important information about python and click CONTINUE.
- Read the history and license and click CONTINUE.
- Click Agree to accept the terms and conditions and continue the installation.
- Select a destination to save the file and click Proceed.
- Click INSTALL to beginning the installation of the upgraded version.
- Enter the password to confirm.
- Installation is getting prepared.
- Finally, the upgraded version is installed.
To check that the latest version is successfully installed on your MAC or not, open the last on your PC and write the given command and you will become the version of python which is recently installed on your PC.
python --version
Using Homebrew
Homebrew is a software package management system that helps in the installation of software on macOS.
To upgrade python past using homebrew, you first accept to install the homebrew software on your MAC from the website https://brew.sh/ according to the given commands. Now you can continue to upgrade python using homebrew.
- Open Terminal on your MAC.
- Write a command
brew doctor
to check if everything is working right in homebrew software and and so we can proceed.
- At present if you want to upgrade to the latest version of python 3 then write
mash search python3
otherwise, if yous desire to upgrade the latest version of python ii then write a commandmash search python2
.
- Later the searching process, now write
mash install python3
for the latest version of python 3 otherwise writemash install python2
for the latest version of python 2.
- Hence the latest version of python 2 or 3 is upgraded on your MAC. You tin can check it by writing the following command on the concluding.
python --version
How to update python on Linux
Linux is a big family of Unix operating systems. The manner to update python in each of them is different. We will discuss the design to update python in some of the very famous Linux systems hither. To install Python on Chromebooks, check this out.
Updating python in Kali Linux
To update python in Kali Linux, you take to follow the following steps.
- Open up www.python.org.
- Go to Downloads and click View the full list of downloads
- Select your desired version and click Download.
- The file will be downloaded as a zipped file in the Downloads folder of your organization.
- Extract the file in the aforementioned folder.
- Run the given command to update your terminal.
apt-get update
- Now, run the following commands one by one.
cd Downloads
cd Python-three.9.1
./configure
./configure --enable-optimizations
brand
make install
- At present, your latest version of python is installed on your arrangement.
- You can bank check information technology by the given command.
python --version
Updating python in Ubuntu using PPA
PPA is the abbreviation for Personal Package Archives. These are the software repositories designed for Ubuntu users to assist them download different third-party software hands. To update python in Ubuntu past using PPA you have to follow the post-obit commands.
- Open concluding.
- Run the given commands step by stride.
sudo apt install software-backdrop-common
Write Y
when asked for any permission.
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python iii.9
- Now, your latest version of python is installed for Ubuntu.
- Yous can check it past the given control.
python --version
Wrap Up
Wrapping it upward, the dissimilar ways to update the python to your desired latest version in Windows, MAC, and Linux systems are explained above in detail. These procedures volition surely work for your need. Hope y'all will find these ways helpful. Don't forget to share your precious thoughts with united states of america.
Source: https://ssiddique.info/how-to-update-python-in-windows-mac-and-linux.html
Posted by: carrellpuld1960.blogspot.com
0 Response to "How To Update Python Command Line"
Post a Comment