banner



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

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.
open python.org  / downloads
  • Go to Downloads and click View the full list of downloads
from dropdown select windows to see latest version
  • Select your desired version.
python.org/downloads shows all previous releases
  • 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.
select latest release for windows 64 or 32 bit
  • Click to open this executable file.
open executable file to run the installer
  • Select both given options before installation; Install the Python for all users and add the Python.ext to the path.
add path for python 3.9 and install it for all users
  • Select Customize Installation to customize the settings.
customize the python installation
  • 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.
check all options to install python completely
  • 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.
select  advanced options to install with Python
  • The installation process volition start.
installation process shows progress bar
  • After installation, the python is prepare on your PC. Click Shut to cease the procedure.
installation done for python
  • 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.
open Powershell and type choco list python
  • All the packages of python will exist listed below.
command to see all choco python packages
  • 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.
install Python package using Chocolatey
  • Beware of installing any package having a Maybe broken flag in forepart of it.
see possibly broken packages in the list
  • At present write choco install python. The most recent version of python will get installed on your system.
run Chocolatey command to install Python
  • 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.
install Python version using Chocolatey
  • The latest version has been updated on your PC.
Python package is installed using Chocolatey
  • 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
image 3 - How to update Python in Windows, Mac, and Linux
  • Select your desired version.
image 16 - How to update Python in Windows, Mac, and Linux
  • Select the MAC installer.
select mac installer
  • Select the downloaded file.
download python pkg
  • Open the downloaded file.
locate files downloads folder
  • The installer is opened. Read the introduction and click Go along.
start python installer
  • Read the important information about python and click CONTINUE.
select installation agreement and start installer
  • Read the history and license and click CONTINUE.
accept license agreement
  • Click Agree to accept the terms and conditions and continue the installation.
image 7 - How to update Python in Windows, Mac, and Linux
  • Select a destination to save the file and click Proceed.
select drive to install python
  • Click INSTALL to beginning the installation of the upgraded version.
start installer
  • Enter the password to confirm.
image 18 - How to update Python in Windows, Mac, and Linux
  • Installation is getting prepared.
image 9 - How to update Python in Windows, Mac, and Linux
  • Finally, the upgraded version is installed.
image 19 - How to update Python in Windows, Mac, and Linux

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.
command brew doctor
  • 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 command mash search python2.
brew search python3
  • Later the searching process, now write mash install python3 for the latest version of python 3 otherwise write mash install python2 for the latest version of python 2.
brew install python3
  • 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
DOwnload python for Linux
  • Select your desired version and click Download.
List of Python versions for Linux
  • The file will be downloaded as a zipped file in the Downloads folder of your organization.
Install Python on Kali Linux
run installer from Downloads folder
  • Extract the file in the aforementioned folder.
extract gzip file
open tar file to run installer
  • Run the given command to update your terminal.

apt-get update

  • Now, run the following commands one by one.

cd Downloads

change folder to downloads

cd Python-three.9.1

change folder to downloads/python

./configure

configure folder

./configure --enable-optimizations

enable optimization

brand

run make file

make install

run 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

ubuntu install using PPA

Write Y when asked for any permission.

continue installation

sudo add-apt-repository ppa:deadsnakes/ppa

sudo add-apt-repository ppa:deadsnakes/ppa

sudo apt update

UPDATE APT

sudo apt install python iii.9

Install Python using apt
  • 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

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel