批量更新python库
摘要:
1 import pip 2 from subprocess import call 3 4 for dist in pip.get_installed_distributions(): 5 try: 6 call("pip install --upgrade " + dist.project_name, shell=True) 7 except Excepti... 阅读全文
posted @ 2017-10-09 17:48 司徒道 阅读(608) 评论(4) 推荐(0) 编辑