我正在尝试在Windows上安装 git-python 。我尝试使用 git 命令安装它:
pip install gitpython
Run Code Online (Sandbox Code Playgroud)
它安装得很好,并且安装在我的本地应用程序数据中。唯一的问题是当我运行它时,它给了我这个错误:
初始化失败:git 可执行文件错误。必须通过以下方式之一指定 git 可执行文件:
另外我运行了 pip install gitpython:
已满足要求: c:\users\morga\appdata\local\programs\python\python38-32\lib\site-packages 中的 gitpython (3.1.3) 已满足要求: c 中的 gitdb<5,>=4.0.1 :\users\morga\appdata\local\programs\python\python38-32\lib\site-packages (来自 gitpython) (4.0.5) 已满足要求: smmap<4,>=3.0.1 in c:\users \morga\appdata\local\programs\python\python38-32\lib\site-packages (来自 gitdb<5,>=4.0.1->gitpython) (3.0.4)
我没有git的文件夹。我只发现远程 git 的任何内容都在我的本地应用程序数据中