Skip to content

Instantly share code, notes, and snippets.

Avatar

Jorijn Jacko Smit jorijnsmit

View GitHub Profile
@SeppPenner
SeppPenner / Readme.md
Last active Oct 10, 2019
Python upgrade Pip packages
View Readme.md

For pip < 10.0.1:

import pip
from subprocess import call

packages = [dist.project_name for dist in pip.get_installed_distributions()]
for package in packages:
	try:
		call("pip install --upgrade " + package, shell=True)
You can’t perform that action at this time.