第三方库自动安装脚本
代码很简单自己按自己需求改吧。#第三方库自动安装脚本
import os
libs = {'pyinstaller',"numpy","matplotlib","pillow","sklearn","requests",\
"jieba","beautifulsoup4","wheel","networkx","sympy",\
"pyinstaller","django","flask","werobot","pyqt5",\
"pandas","pyopengl","pypdf2","pygame","easygui"}
try:
for lib in libs:
os.system("python -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple " + lib)
print("安装完成")
except:
print("安装失败")
感谢楼主,很有帮助 太帅气了,很有帮助 学习学习下。。。。。。。。。。。。。。。。。。。。。 感谢,看看。。。。。。。。。。。。。 谢谢,造福小白
页:
[1]