码迷,mamicode.com
首页 > 编程语言 > 详细

python第三方库自动安装脚本

时间:2018-05-17 11:41:49      阅读:429      评论:0      收藏:0      [点我收藏+]

标签:atp   some   pytho   soup   net   djang   cmd   pre   otl   

#python第三方库自动安装脚本,需要在cmd中运行此脚本
#BatchInstall.py
import os
libs = {"numpy","matplotlib","pillow","sklearn","requests",\
"jieba","beautifulsoup4","wheel","networkx","sympy",\
"pyinstaller","django","flask","werobot","pyqt5",\
"pandas","pyopeng1","pypdf2","docopt","pygame"}
try:
for lib in libs:
os.system("pip3 install " + lib)
print("Successful")
except:
print("Failed Somehow")

python第三方库自动安装脚本

标签:atp   some   pytho   soup   net   djang   cmd   pre   otl   

原文地址:https://www.cnblogs.com/zhenshj/p/9049275.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!