#python第三方库自动安装脚本,需要在cmd中运行此脚本#BatchInstall.pyimport oslibs = {"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")
原文地址:https://www.cnblogs.com/zhenshj/p/9049275.html
时间: 2024-10-29 19:11:16