import pkg_resources as pkgres
from subprocess import call

packages = [distribution.project_name for distribution in pkgres.working_set]
call("pip install --upgrade " + ' '.join(packages), shell=True)
a29127edb0ff2a3ff6fd740e48b50805ba7b75aa
<mask token>

<mask token>
call('pip install --upgrade ' + ' '.join(packages), shell=True)

<mask token>
packages = [distribution.project_name for distribution in pkgres.working_set]
call('pip install --upgrade ' + ' '.join(packages), shell=True)

import pkg_resources as pkgres
from subprocess import call
packages = [distribution.project_name for distribution in pkgres.working_set]
call('pip install --upgrade ' + ' '.join(packages), shell=True)

import pkg_resources as pkgres
from subprocess import call

packages = [distribution.project_name for distribution in pkgres.working_set]
call("pip install --upgrade " + ' '.join(packages), shell=True)