Friday, July 17, 2020

How To Update/Upgrade A Python Package

How to upgrade python module:



in Linux:



  In terminal type           
$pip3 install --upgrade packageName  
       
   ## Exa1:
 $pip3 inatall --upgrade numpy
       
Note:  sign already come by default in terminal.


In Windows :

     

In powershell or command prompt
 type:
 $:pip install --upgrade packagename

 ## Exa1:
 $pip inatall --upgrade numpy


How to install a selective version of python module:


 In Linux:

                     
 type :       
$ pip3 install packagename==version     

## Exa1: 
pip3 inatall scipy==1.4.1

 

 In Windows:

                     
 type :
$pip install packagename==version

## Exa1: 

1 comment: