How to update all installed packages in Python with pip on Windows
Simplest method is to use pip-review package,
-
pip install pip-review
-
pip-review --interactive
You can update all the packages in following way,
-
import pkg_resources
-
from subprocess import call
-
packages =[dist.project_name for dist in pkg_resources.working_set]
-
call("pip install --upgrade "+' '.join(packages), shell=True)
This method works on Windows as well.
暂无评论
要发表评论,您必须先 登录