PIP bulk updates of installed packages

——————pipBatch update library

1)View expired Library

pip list --outdated 

Updating a single library:

pip install --upgrade The name of the library

Batch upgrade update all expired Libraries

import pip
from pip._internal.utils.misc import get_installed_distributions
from subprocess import call
for dist in get_installed_distributions():
    call("pip install --upgrade " + dist.project_name, shell=True)

AnacondaBatch update library

 Update all libraries

conda update -all

Update Anaconda

conda update conda

Leave a Reply

Your email address will not be published. Required fields are marked *