1. 程式人生 > >python第三方庫自動安裝腳本

python第三方庫自動安裝腳本

led pri somehow port 運行 sklearn jieba robot cep

#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第三方庫自動安裝腳本