python使用gitPython时报错git.exc.GitCommandNotFound的解决方法
官方的解释:git.exc.GitCommandNotFound(命令,原因)如果在PATH或GIT_PYTHON_GIT_EXECUTABLE环境变量给定的路径中找不到git可执行文件,则抛出该异常 def git_cmd(self, working_dir, command): """执行git cmd命令""" exec_res = Git(working_dir).execute(command=command) return exec_r
原创
2020-10-27 20:52:42 ·
5347 阅读 ·
3 评论