Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork937
Unable to import git module in python#1841
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Today while working on a project on Python I needed to import git module so in I opened CMD and entered the following command
|
BetaWas this translation helpful?Give feedback.
All reactions
I opened CMD and entered the following command
pip install GitPython
to install git
GitPython provides agit
module for Python code, but it does not provideGit itself. GitPython does most of its work by using the externalgit
command thatGit provides. So GitPython needsGit to be present.
For the GitPythongit
module to make use of this externalgit
command, the external command must either be runnable asgit
from the environment in which you run the Python process that uses GitPython, or specially configured as described in the message you saw. In most cases, it either is present asgit
or is intended to be present asgit
.
IsGit installed? If it is installed and usable, then runningg…
Replies: 1 comment
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
GitPython provides a For the GitPython IsGit installed? If it is installed and usable, then running If you are able to successfully run |
BetaWas this translation helpful?Give feedback.
All reactions
This discussion was converted from issue #1837 on February 23, 2024 15:14.