You need to use the proper git URL:

pip install git+https://github.com/jkbr/httpie.git#egg=httpie

Also see the VCS Support section of the pip documentation.

Don’t forget to include the egg=<projectname> part to explicitly name the project; this way pip can track metadata for it without having to have run the setup.py script.

Answer from Martijn Pieters on Stack Overflow
🌐
Readthedocs
gitpython.readthedocs.io › en › stable › intro.html
Overview / Install — GitPython 3.1.46 documentation
Assuming it is installed, just run the following from the command-line: ... This command will download the latest version of GitPython from the Python Package Index and install it to your system.
🌐
GitHub
github.com › gitpython-developers › GitPython
GitHub - gitpython-developers/GitPython: GitPython is a python library used to interact with Git repositories. · GitHub
GitPython needs the git executable to be installed on the system and available in your PATH for most operations. If it is not in your PATH, you can help GitPython find it by setting the GIT_PYTHON_GIT_EXECUTABLE=<path/to/git> environment variable.
Starred by 5.1K users
Forked by 968 users
Languages   Python
Discussions

pip - How to install Python package from GitHub? - Stack Overflow
To install Python package from github, you need to clone that repository. More on stackoverflow.com
🌐 stackoverflow.com
How to install Git package on WIndows with python - Stack Overflow
I am trying to install a plugin from Domoticz, and I need to do it via python, but I'm new to the python terminal. I am trying to do the following command pip install git+https://mygithublink#egg=n... More on stackoverflow.com
🌐 stackoverflow.com
How to install Python module from Git repo
You can install Python modules from source with pip install More on reddit.com
🌐 r/flatpak
4
4
December 13, 2022
Unable to import git module in python
Today while working on a project on Python I needed to import git module so in I opened CMD and entered the following command pip install GitPython to install git then when I went to test the modul... More on github.com
🌐 github.com
1
1
February 22, 2024
🌐
Python Developer's Guide
devguide.python.org › contrib › workflows › install-git
Install Git
As the CPython repo is hosted on GitHub, please refer to either the GitHub setup instructions or the Git project instructions for step-by-step installation directions.
🌐
ActiveState
activestate.com › home › resources › quick read › pip install git – a quick read
PIP Install Git - A quick read - ActiveState
January 23, 2024 - Click to PIP install Git and use pip together with Git. Also, learn about the modern solution to building Python from source.
🌐
PyPI
pypi.org › project › python-git
python-git
JavaScript is disabled in your browser. Please enable JavaScript to proceed · A required part of this site couldn’t load. This may be due to a browser extension, network issues, or browser settings. Please check your connection, disable any ad blockers, or try using a different browser
🌐
PyPI
pypi.org › project › GitPython
GitPython
JavaScript is disabled in your browser. Please enable JavaScript to proceed · A required part of this site couldn’t load. This may be due to a browser extension, network issues, or browser settings. Please check your connection, disable any ad blockers, or try using a different browser
Find elsewhere
🌐
Readthedocs
gitpython.readthedocs.io
GitPython Documentation — GitPython 3.1.46 documentation
GitPython Documentation · View page source · Overview / Install · Requirements · Installing GitPython · Limitations · Getting Started · API Reference · Source Code · Questions and Answers · Issue Tracker · License Information · GitPython Quick Start Tutorial ·
🌐
Readthedocs
gitpython.readthedocs.io › en › 2.0.7 › intro.html
Overview / Install — GitPython 2.0.7 documentation
Assuming it is installed, just run the following from the command-line: ... This command will download the latest version of GitPython from the Python Package Index and install it to your system.
🌐
NSF NEON
neonscience.org › resources › learning-hub › tutorials › setup-git-bash-python
Install Git, Bash Shell, Python | NSF NEON | Open Data to Understand our Ecosystems
April 9, 2021 - If Git is not already available on your machine you can try to install it via your distro's package manager. For Debian/Ubuntu run sudo apt-get install git and for Fedora run sudo yum install git. Python is a popular language for scientific computing and data science, as well as being a great ...
🌐
Stack Overflow
stackoverflow.com › questions › 68497360 › how-to-install-git-package-on-windows-with-python
How to install Git package on WIndows with python - Stack Overflow
I am trying to install a plugin from Domoticz, and I need to do it via python, but I'm new to the python terminal. I am trying to do the following command ... Have you tried what the error message says? Install git and add it to your path - git-scm.com/book/en/v2/Getting-Started-Installing-Git
🌐
Full Stack Python
fullstackpython.com › blog › first-steps-gitpython.html
First Steps with GitPython - Full Stack Python
November 30, 2017 - pip and virtualenv, which come packaged with Python 3, to install and isolate the GitPython library from any of your other Python projects
🌐
piwheels
piwheels.org › project › gitpython
piwheels - GitPython
January 1, 2026 - GitPython is a Python library used to interact with Git repositories · In a virtualenv (see these instructions if you need to create one): pip3 install gitpython · gitdb · typing-extensions · PyPI page · pypi.org/ project/ gitpython · ...
🌐
Reddit
reddit.com › r/flatpak › how to install python module from git repo
r/flatpak on Reddit: How to install Python module from Git repo
December 13, 2022 -

Hey,

This is completely unrelated to my issue the other day. I've got an existing application on Github, and I would like to update my runtime to the 22.08 version. However, the 22.08 KDE runtime runs Python 3.10, meaning I also need to ship compatible Python modules.

I've got a local manifest on my computer where everything works and is up to date, but one of my modules is not compatible with Python 3.10 and up (so almost everything work, that module is my only blocker. The program loads, but as soon as I open a file it gives me an error). I've actually fixed this issue, and they accepted my PR the other day so the fix also in the master branch of their repo. This version is therefore now compatible with later version of Python as well. However, it's not on PyPi yet, the only way to install this fixed version as of now is using the Git repo.

So my question is how do I build this Flatpak in my module from the Git. Right now, the relevant part looks like this:

{
            "name": "python3-cbf",
            "buildsystem": "simple",
            "build-commands": [
                "pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"cbf\" --no-build-isolation"
            ],
            "sources": [
                {
                    "type": "file",
                    "url": "https://files.pythonhosted.org/packages/f4/66/17b8e95770478436bf968353c89683ce6f9e14d92e0d4fb3111c09ba18d2/numpy-1.23.2.tar.gz",
                    "sha256": "b78d00e48261fbbd04aa0d7427cf78d18401ee0abd89c7559bbf422e5b1c7d01"
                },
                {
                    "type": "file",
                    "url": "https://files.pythonhosted.org/packages/ca/5c/3d52cea53c0fbb72ac7ea611e9b4651aa205c4c81dba09b8041609e89c95/cbf-1.1.5.tar.gz",
                    "sha256": "4f89a94b9c1e355a81c2d08f56cb12b97fe634e6e30f503d4cbd46edaf982f3a"
                }
            ]
        }

The relevant package is the second file. The first one (numpy) is now built separately in a separate .json file in my updated manifest. I tried to just point the source to the git repository, but that didn't work. It just tells me that it cannot find the module cbf (which is the name of the module). I also tried to point to the tarball of this git repo after verifying the checksum locally, but that gave the same error.

The git repo and the tarball from PyPi (which does work) seem nearly identical. So I'm not sure why it's not working. Could anyone help me out here so I can update my manifest? Or is the proper course of action to just ask the developers to release this new fix as a point-update on PyPi? (Not sure how much I wanted to pester the developers, as he mentioned to me that he had a huge backlog of work which is why it took weeks to review my PR).

🌐
Stack Abuse
stackabuse.com › bytes › installing-python-packages-from-a-git-repo-with-pip
Installing Python Packages from a Git Repo with pip
August 28, 2023 - Private packages: If you're working on a private project, you might have packages that are not available on PyPI. You can install these packages directly from the Git repo. Installing a Python package from a Git repo branch is straightforward with pip.
🌐
Python.org
discuss.python.org › packaging
Difference between local install and installing from Git - Packaging - Discussions on Python.org
March 30, 2021 - I’m bit struggling with packaging data with my package. I found there is different behavior between local installation (pip install .) and through Git (pip install git+ssh://git@gitlab.com/path/to/repo/my_package.git). C…
🌐
CodeRivers
coderivers.org › blog › install-git-python
Installing GitPython: A Comprehensive Guide - CodeRivers
April 23, 2025 - 1. First, clone the GitPython repository from GitHub: bash git clone https://github.com/gitpython-developers/GitPython.git 2. Navigate to the directory: bash cd GitPython 3. Install the library: bash python setup.py install For Python 3, use: bash python3 setup.py install
🌐
Anaconda.org
anaconda.org › anaconda › gitpython
gitpython - anaconda
Organization created on Sep 18, 2015 · Anaconda, Inc. Austin, Texas The packages on this channel are covered by the Anaconda repository Terms of Service. Among other things, the ToS prohibits heavy commercial use and mirroring by any third party for commercial purposes