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.
pip - How to install Python package from GitHub? - Stack Overflow
How to install Git package on WIndows with python - Stack Overflow
How to install Python module from Git repo
Unable to import git module in python
Videos
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.
To install Python package from github, you need to clone that repository.
git clone https://github.com/jkbr/httpie.git
Then just run the setup.py file from that directory,
sudo python setup.py install
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).