import os #libs = {"numpy", "matplotlib", "pillow", "sklearn", "requests", "jieba",\ # "beautifulsoup4", "wheel", "networkx", "sympy", "pyinstaller", "diango",\ # "flask", "werobot", "pyqt5", "pandas", "pyopengl", "pypdf2", "docopt", "pygame"}; libs = {"sklearn", "requests"}; try: for lib in libs: print("start install {0}".format(lib)); os.system("pip install " + lib); print("{} install successful".format(lib)); print("All Successful"); except: print("Failed SomeHow"); ———————————————— 原文链接:https://blog.csdn.net/cheng6023/article/details/102675765
原文:https://www.cnblogs.com/hehahahepython/p/14789146.html