Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upError: No module named 'git' #1051
Open
Labels
Comments
Even though I don't know what is causing this I do know that GitPython 2.x is supposed to work with Python 2 and 3, whereas GitPython 3 only works with Python 3. It's hard to understand what exactly happened here, but when running My best guess is that pip installs things outside of the PYTHONPATH, which certainly is surprising, but then again, it's Python… .
But the package is installed here:
I think adding the respective |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Trying to use gitpython on my Mac (Catalina 10.15.5) but no success yet. I hope you guys could help me:
"DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting gitpython
Using cached GitPython-2.1.15-py2.py3-none-any.whl (452 kB)
Requirement already satisfied: gitdb2<3,>=2 in /Users/joseluisoliveros/Library/Python/2.7/lib/python/site-packages (from gitpython) (2.0.6)
Requirement already satisfied: smmap2>=2.0.0 in /Users/joseluisoliveros/Library/Python/2.7/lib/python/site-packages (from gitdb2<3,>=2->gitpython) (3.0.1)
Requirement already satisfied: smmap>=3.0.1 in /Users/joseluisoliveros/Library/Python/2.7/lib/python/site-packages (from smmap2>=2.0.0->gitdb2<3,>=2->gitpython) (3.0.4)
Installing collected packages: gitpython
Successfully installed gitpython-2.1.15"
Error: No module named 'git'
Python 3.8.5