Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
克隆 git repo 时遇到问题。
我正在使用来自 GitPython 库的函数clone_from
从 git 导入回购 repo.clone_from("git://github.com/facebook/buck.git", "D:\sample")
从 git 导入回购
repo.clone_from("git://github.com/facebook/buck.git", "D:\sample")
我收到错误
WindowsError:系统找不到指定的文件
有人可以告诉我这是否是如何使用库克隆回购吗?
git.ext您可能没有PATH,但可以通过自己执行轻松测试。如果您看到错误,您可以将其添加到PATH,或将 设置为GIT_PYTHON_GIT_EXECUTABLEgit-python 应该为 git 命令行服务执行的可执行文件。
git.ext
PATH
GIT_PYTHON_GIT_EXECUTABLE