pretty

Wednesday, November 14, 2012

Update all python pip packages


import pip
from subprocess import call

for dist in pip.get_installed_distributions():
call("pip install --upgrade " + dist.project_name, shell=True)
i use it with ipython

sudo ipython
""" Cut the code above and type
%paste

No comments:

Post a Comment