to_requirements.py 177 B

12345678
  1. # 通过 pipreqs 打包为 生成 requirements.txt
  2. import os
  3. dirPath = os.getcwd()
  4. os.system(f'cd /d {dirPath}')
  5. os.system(r'pipreqs ./ --encoding=utf8 --force --use-local')