OSError: [Errno 2] No such file or directory on GitPython

前端 未结 1 1681
伪装坚强ぢ
伪装坚强ぢ 2021-01-17 04:09

I am using GitPython to fetch a remote repository to my machine. The following code works well on my Ubuntu 12.04 but on my amazon ec2, on a Ubuntu 11.10 server, I get the O

相关标签:
1条回答
  • 2021-01-17 04:17

    The error is coming out of the subprocess module. This suggests that git is either not installed on your EC2 instance or is in a location that is not in your PATH environment variable.

    Note that GitPython depends on the git command-line tools. If you want a native Python module for interacting with Git repositories, take a look at dulwich.

    0 讨论(0)
提交回复
热议问题