Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pip install wheel version from private github repo

I've packaged my private repo into a wheel. There are different versions of the wheel. Is it possible to install a specific wheel version of the repo using pip from the command line and via the requirements.txt file? This feature isn't mentioned in the pip documentation from what I can tell.

I can install a pip package from a private repository with no problem, using a Github token.

pip install git+https://[email protected]/[username]/[reponame].git

I can also install a private pip package with a specific commit:

pip install git+https://[email protected]/[username]/[reponame].git@[commit_sha]

like image 920
skeller88 Avatar asked Jan 30 '26 16:01

skeller88


1 Answers

According to current docs, installing wheels (with or without pinned version) from VCS is currently not supported by pip, and maybe it never will.

I suspect the reason is that a wheel is basically a "compiled artifact", so you wouldn't usually find those committed into a git repository, e.g. all the examples from the VCS page show examples that would install that dependency from source and build it locally.

like image 189
Bastian Venthur Avatar answered Feb 02 '26 08:02

Bastian Venthur



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!