from pip._internal import main as pip_main
def install(package):
pip_main(['install', package])
if __name__ == '__main__':
with open('requirements.txt') as f:
for line in f:
install(line)
Windows只能写个脚本来实现了,谁有更好的方法告诉我一下
网友评论