Skip to content

Instantly share code, notes, and snippets.

@nitrocode
Last active February 20, 2016 03:26
Show Gist options
  • Select an option

  • Save nitrocode/89c6b7b1fe57931a90e3 to your computer and use it in GitHub Desktop.

Select an option

Save nitrocode/89c6b7b1fe57931a90e3 to your computer and use it in GitHub Desktop.
Upgrade all Windows pip packages and choco packages
@echo off
:: upgrade pip, setuptools, pip packages, and all choco packages
:: upgrade pip
pip install -U pip
:: upgrade setuptools
pip install setuptools --no-use-wheel --upgrade
:: upgrade all pip packages
pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U
:: upgrade all choco packages
choco upgrade all -y
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment