The following guides make use of:
So first you have to install them:
pip install -U pip-chill pip-review
All packages, with version number:
pip freeze
Only root packages, without version number:
pip-chill --no-version
# or, excluding pip-chill: pip-chill --no-version --no-chill
-
uninstall all global packages (see dedicated section)
-
python -m pip uninstall pip setuptools wheel wget https://bootstrap.pypa.io/get-pip.py python get-pip.py --force
-
(optional) reinstall global packages
python -m pip install --upgrade pip
pip-review --local --auto
pip freeze >pip.freeze
pip uninstall -r pip.freeze -y
rm pip.freeze
# or:
# pip-chill >pip.chill
# pip uninstall -r pip.chill -y
# rm pip.chill
pip-chill --no-version >pip.chill
pip uninstall -r pip.chill -y
pip install -U -r pip.chill
rm pip.chill