使用gitPython的一些坑

310 阅读1分钟

git.exc.GitCommandNotFound

  1. 检查是否安装git
  2. 检查是否环境变量中存在git的路径
  3. git.execute()参数中添加shell=True