How does python update packages

Python installs new packages, pip is a very useful installation tool.

pip list can query all installed packages and versions. How do I know whether there is a new version of the local installation package that can be updated? It can be achieved through the pip list function. The specific implementation is as follows:

pip list --outdated --format=legacy 
pip list --outdated --format=columns ##Contrast format=legacy,format=The output format of columns is similar to that of a table.

Through the above method, you can obtain the current version of the currently installed package, the latest version and the package installation file format (wheel/sdist)

So how do you update these packages?

The first method: pip install -Uxxxx (xxxx refers to the name of the package, the disadvantage of this method is that the package needs to be updated one by one)

The second way: pip-review function

pip install pip-review
pip-review --local --interactive

Knowledge point expansion:

Python package update method

I haven't fiddled with the old notebook for a long time. I turned it on today and found that the python version is very low. Almost all packages need to be updated. So, take the opportunity to organize the python package update method:

Need special explanation, under linux system, commands need to bring sudo to use super user authority.

Update the current pip first, because the pip package is needed for the next update

Or python -m pip install --upgrade pip

  1. View currently installed packages
  1. Update a single package
  1. Uninstall package
  1. Update all packages

The test has not been successful yet

So far this article on how to update the python package is introduced. For more relevant python update package steps, please search for the previous articles of ZaLou.Cn or continue to browse the related articles below. Hope you will support ZaLou.Cn in the future!

Recommended Posts

How does python update packages
How does Python list update value
How does python import dependency packages
How does Python output integers
How does python output backslashes
How does python perform matrix operations
How does python change the environment
How does python call java classes
How does Python generate xml files
How does python determine prime numbers
How does python improve the calculation speed
How does python call its own function
How does Python handle the json module
How does python distinguish return and yield
How does Python store data to json files
How python was invented
How Python parses XML
How does python call the key of a dictionary
How does python get input examples from the keyboard
How to understand the introduction of packages in Python
How does python handle the program cannot be opened
How does python judge the module installation is complete
How to comment python code
How Python converts string case
How long does it take to learn python by myself?
How to learn python quickly
How to uninstall python plugin
Noteworthy update points in Python 3.9
Does Python support multiple inheritance?
How Python implements FTP function
How to understand python objects
How to use python tuples
python functions, classes, modules, packages
Explain how python references package package
python how to view webpage code
How to use python thread pool
How Python implements the mail function
How to Update to gcc4.9.x on Centos7
How to write python configuration file
What does rc1 mean in python
How to save the python program
What does def in python do
How to omit parentheses in Python
How to install Python 3.8 on CentOS 8
How to write classes in python
How to filter numbers in python
How to read Excel in Python
How to install Python on CentOS 8
How to view errors in python
How to write return in python
How Python operates on file directories
How Python implements the timer function
How to view the python module
How to understand variables in Python
How to clear variables in python
How to understand python object-oriented programming
How to use SQLite in Python