Skip to content

Latest commit

 

History

History
67 lines (48 loc) · 1.2 KB

python.md

File metadata and controls

67 lines (48 loc) · 1.2 KB

Python

The following guides make use of:

So first you have to install them:

pip install -U pip-chill pip-review

List all installed packages

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

Reinstall pip

  1. uninstall all global packages (see dedicated section)

  2. 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

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

Uninstall all global packages

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

pip-chill --no-version >pip.chill
pip uninstall -r pip.chill -y
pip install -U -r pip.chill
rm pip.chill