第三方库自动安装脚本
# 第三方库自动安装脚本# batchInstall
import os
libs = {'numpy', 'matplotlib', 'pillow', 'sklearn', 'requests','scrapy',\
'jieba', 'beautifulsoup4', 'wheel', 'networkx', 'sympy', 'pyspider',\
'pyinstaller', 'django', 'flask', 'werobot', 'pyqt5','pyramid',\
'pandas', 'pyopengl', 'pypdf2', 'docopt', 'pygame','panda3d',\
'cocos2d','python-goose','vrzero','pyovr','vizard','quads',\
'ascii-arts','mayavi', 'NLTK', 'python-docx', 'scikit-learn',\
'aip','myqr','tensorflow', 'MXNet','pyqt5','wxpython','pygobject'}
try:
for lib in libs:
os.system("pip install " + lib)
print("Successful")
except:
print("Failed somehow")
页:
[1]