If I'm not mistaken, you would need the git client to be install on your machine. In the event that you don't have git installed, try this:

pip install https://github.com/facebook/python-sdk/zipball/master

or

pip install https://github.com/facebook/python-sdk/tarball/master

You need to install the git-core, since the git:// protocol isn't associated with anything.

sudo apt-get install git-core
Answer from Mridang Agarwalla on Stack Overflow
🌐
GitHub
github.com › pypa › pip
GitHub - pypa/pip: The Python package installer · GitHub
2 weeks ago - The Python package installer. Contribute to pypa/pip development by creating an account on GitHub.
Starred by 10.2K users
Forked by 3.3K users
Languages   Python
🌐
PyPI
pypi.org › project › github
github · PyPI
pip install github Copy PIP instructions · Latest version · Released: Jul 6, 2022 · An asynchronous python wrapper around the GitHub API · These details have been verified by PyPI · sudosnok Var · These details have not been verified by ...
      » pip install github
    
Published   Jul 06, 2022
Version   1.2.7
Discussions

How to use Python Pip install software, to pull packages from Github? - Stack Overflow
Update - so I bit the bullet, and installed Git on my VPS. Pip still wasn't able to grab the package, but it was giving a different set of errors, so - progress. :) I finally did · git clone http://github.com/facebook/python-sdk.git More on stackoverflow.com
🌐 stackoverflow.com
Using pip install from git as a substitute for private package repo
If you are using docker, you can do something similar to this in your Dockerfile: ARG GITHUB_AUTH RUN echo "machine github.com\nlogin pat\npassword $GITHUB_AUTH" > /root/.netrc \ && pip install --root-user-action=ignore git+https://github.com/some_user/some_repo@TAG \ && rm /root/.netrc Then when you build the dockerfile, you have to provide a Github PAT as build arg (example using Buildx/Buildkit): docker buildx build -f Dockerfile --build-arg GITHUB_AUTH=$GITHUB_AUTH . If you are not using docker, the easiest thing to do just clone the repo manually and pip install from disk. Otherwise, you can use the .netrc trick for any user, but it requires your Github credentials to be on disk in plain text to allow builds to allows work. More on reddit.com
🌐 r/learnpython
7
35
September 20, 2022
PIP Installing from Github
Hey team, I would like to pip install a package from Github which I want to use in my app and then deploy on streamlit cloud share. pip install --upgrade git+https://github.com/StreamAlpha/pynse.git Please guide me how do I clone to this for using this package in my app and then hosting on ... More on discuss.streamlit.io
🌐 discuss.streamlit.io
1
2
January 28, 2022
python - pip install from git repo branch - Stack Overflow
(original_anatome_env) ...00000gr/T/pip-req-build-62d_ghd2 Running command git checkout -b dev --track origin/dev Switched to a new branch 'dev' Branch 'dev' set up to track remote branch 'dev' from 'origin'. Resolved https://github.com/moskomule/anatome.git to commit 4b576e51cb1824a57ea04974e0f92b5a6143294d Requirement already satisfied: torch>=1.10.0 in /Users/brando/anaconda3/envs/metalearning/envs/original_anatome_env/lib/python3.9/site-packages ... More on stackoverflow.com
🌐 stackoverflow.com
🌐
GitHub
gist.github.com › javrasya › e95ade856ff42e4649972f8a54368459
pip-install-from-a-git-repo.md · GitHub
Pip is a package manager of python. You can download Python libraries from some Python repositories like PyPI. You can also download libraries from a git repository.
🌐
PyPI
pypi.org › project › PyGithub
PyGithub · PyPI
PyGitHub is a Python library to access the GitHub REST API. This library enables you to manage GitHub resources such as repositories, user profiles, and organizations in your Python applications. pip install PyGithub ·
      » pip install PyGithub
    
Published   Mar 22, 2026
Version   2.9.0
🌐
GeeksforGeeks
geeksforgeeks.org › python › how-to-install-a-python-package-from-a-github-repository
How to install a Python Package from a GitHub Repository - GeeksforGeeks
July 23, 2025 - Since the PIP package comes with the default installation of Python when we try to install pip from the GIT repository it shows that the Requirement is already satisfied. Here, you have to replace the version commit with the git commit of the version you want to install, later in this article, we will see how to install from commits and subdirectories and name the project also. pip install pip@git+https://github.com/pypa/pip@'version commit'
🌐
Reddit
reddit.com › r/learnpython › using pip install from git as a substitute for private package repo
r/learnpython on Reddit: Using pip install from git as a substitute for private package repo
September 20, 2022 -

At work, I have a Python package that I need to use elsewhere (on Databricks/Spark), but I don't really want to upload to PyPi, nor do I want the additional overhead of maintaining a private package repository (we're a small team, and the lightest-touch solution is usually preferable).

I know I can install packages from git, using the syntax:
pip install git+https://github.com/some_user/some_repo@TAG

This works in the context that I need it, but I'm curious as to understand:

  • Is reasonable practice for managing dependencies, privately?

  • What are the drawbacks of doing it this way (versus a dedicated package repository)?

  • Are there any alternatives I'm not considering?

Grateful for any help :)

Find elsewhere
🌐
GitHub
github.com › topics › pip-install
pip-install · GitHub Topics · GitHub
2 weeks ago - This is a python package which has different types of assistant which will help you make your own assistant. framework assistant pip personal-assistant virtual-assistant pip-install
🌐
PyPI
pypi.org › project › github.py
github.py
August 29, 2019 - 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
🌐
GitHub
github.com › pip-install-python
pip-install-python (Pip Install Python) · GitHub
I really enjoy building open source software, creating and contributing to python communities, teaching others through video content with the goal of innovating and learning something new every day. Check out some of the components I've built for dash: https://pip-install-python.com/
🌐
GitHub
github.com › topics › pip
pip · GitHub Topics · GitHub
python deep-neural-networks deep-learning neural-network tensorflow ml python3 distributed medical-imaging pip gan autoencoder segmentation convolutional-neural-networks python2 medical-image-computing medical-images medical-image-processing image-guided-therapy medical-image-analysis
🌐
PyPI
pypi.org › project › GitPython
GitPython · PyPI
If you want to do that and you want the versions in GitPython's git submodules to be used, then pass -e git/ext/gitdb and/or -e git/ext/gitdb/gitdb/ext/smmap to pip install. This can be done in any order, and in separate pip install commands ...
      » pip install GitPython
    
Published   Jan 01, 2026
Version   3.1.46
🌐
GitHub
github.com › marketplace › actions › pip-installer
Pip Installer · Actions · GitHub Marketplace
The value recieved from this input will be passed directly to pip. ... editable: '' # python -m pip install package1 editable: path/to/SomeProject # python -m pip install --editable path/to/SomeProject editable: git+http://repo/my_project.git#egg=SomeProject # python -m pip install --editable git+http://repo/my_project.git#egg=SomeProject
🌐
GitHub
github.com › Jrohy › python3-install
GitHub - Jrohy/python3-install: auto install latest python3 & pip · GitHub
auto install Python3 and pip support CentOS 6+/Debian 8+/Ubuntu 14+
Starred by 66 users
Forked by 40 users
Languages   Shell
🌐
ActiveState
activestate.com › home › resources › quick read › pip install git – a quick read
PIP Install Git - A quick read - ActiveState
January 23, 2024 - pip install git+ssh://github.com/<owner_name>/<repo_name>.git@<version#>#egg=<repo_name> Dependency resolution is at the core of the ActiveState Platform. When you create a project and start adding requirements, the Platforms tell you what dependencies those requirements have. The ActiveState Platform is a cloud-based build tool for Python.
🌐
GitHub
github.com › pypa › get-pip
GitHub - pypa/get-pip: Helper scripts to install pip, in a Python installation that doesn't have it. · GitHub
Helper scripts to install pip, in a Python installation that doesn't have it. - pypa/get-pip
Starred by 876 users
Forked by 339 users
Languages   Python
🌐
Reddit
reddit.com › r/python › how to install with pip directly from github?
r/Python on Reddit: How to install with pip directly from GitHub?
August 6, 2014 -

I want to install a package from github with pip. However, I have found several different ways to do it.

Option 1

$ pip install https://github.com/django-extensions/django-extensions/zipball/master
$ pip freeze --local
django-extensions==1.3.9

Option 2

$ pip install git+https://github.com/django-extensions/django-extensions
$ pip freeze --local
django-extensions==1.4.0

Option 2b

$ pip install git+https://github.com/django-extensions/django-extensions.git
$ pip freeze --local
django-extensions==1.4.0

Notice the .git suffix at the end of the pip install... line. It was missing in the previous case.

Option 3

$ pip install -e git+https://github.com/django-extensions/django-extensions.git#egg=django-extensions
$ pip freeze --local
-e git+https://github.com/django-extensions/django-extensions.git@4034b96b1879a14af3c26872e739abcad3fc4f3d#egg=django_extensions-master

Which is the preferred way? Option 1 installed an older version than Option 2. Option 3 seems to install the latest patch too? What's the difference?

Also, if I create a requirements.txt file, I want people to install the same version that I tested my software with. Although in Option 1 and 2 I install from GitHub, it's not reflected in the requirements.txt file, so if they execute pip install -r requirements.txt, the software will be pulled from PyPi. However, in Option 3 it will be pulled from GitHub.

Edit: section titles are in bold.