Skip to content

Instantly share code, notes, and snippets.

@paddy74
Last active September 4, 2024 15:13
Show Gist options
  • Save paddy74/d6923e92100d7c986fbc5abf1b9c2d73 to your computer and use it in GitHub Desktop.
Save paddy74/d6923e92100d7c986fbc5abf1b9c2d73 to your computer and use it in GitHub Desktop.
Upgrade all Python packages in the active environment
# https://github.com/pypa/pip/issues/4551
python -m pip freeze | ForEach-Object{$_.split('==')[0]} | %{python -m pip install --upgrade $_}
#!/bin/bash
# https://github.com/pypa/pip/issues/4551
python -m pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 python -m pip install -U
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment