自动安装第三方库

import os

libs = {"numpy", "whell", "flask"}
try:
    for lib in libs:
        os.system("pip install " + lib)
        print("Successful")
except:
    print("Failed")

 

posted @ 2020-05-18 16:33  王者2  阅读(151)  评论(0编辑  收藏  举报