If the Python library is older and needs to be updated to the latest version, you can take advantage of the PIP tool.
DOS command line, enter pip-v to view the PIP version, you can first update the PIP to the new version.
View outdated Python libraries in your system
pip list --outdated #列出所有过期的库
For the list of expired libraries, PIP provides an update command for a single library
Install --upgrade Library name
However, this command does not support global full library upgrades.
The bulk Update method is available here ( Note:pip install--upgrade The last space cannot be omitted )
DOS command line input python into the Python environment, and then use the following Python code to implement the Bulk Update Tool library
Import pipfrom subprocess import Call for inch pip.get_installed_distributions (): Call ("" + dist.project_name, shell= True)
Batch Update Python library with PIP