Skip to content

Python

The following guides make use of:

So first you have to install them:

Bash
pip install -U pip-chill pip-review

List all installed packages

All packages, with version number:

Bash
pip freeze

Only root packages, without version number:

Bash
pip-chill --no-version
# or, excluding pip-chill: pip-chill --no-version --no-chill

Reinstall pip

  1. uninstall all global packages (see dedicated section)

  2. powershell python -m pip uninstall pip setuptools wheel wget https://bootstrap.pypa.io/get-pip.py python get-pip.py --force

  3. (optional) reinstall global packages

Update all global packages

Bash
python -m pip install --upgrade pip
pip-review --local --auto

Uninstall all global packages

Bash
1
2
3
4
5
6
7
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

Reinstall all global packages to the latest available version

Bash
1
2
3
4
pip-chill --no-version >pip.chill
pip uninstall -r pip.chill -y
pip install -U -r pip.chill
rm pip.chill