import os
libs = {"numpy", "matplotlib", "pillow", "sklearn", "requests",
"jieba", "beautifulsoup4", "wheel", "networkx",
"sympy", "pyinstaller", "django", "flask", "werobot",
"pyqt5", "pandas", "pyopengl", "pypdf2", "docopt", "pygame"}
try:
for lib in libs:
os.system("pip install " + lib)
print("successful")
except:
print("failed somehow")
代码很短,但是我运行了超久
是个网课的实例,嗯