-wbo5q
Last Updated: December 01, 2017
·
27.21K
· oleiade
Img 1416

Pip : Install a specific github repo tag or branch

I came across a rather simple problem lately : how to install one of my github hosted repo's specific tag using pip.

It can be very usefull when it comes to add one of your project's tag to a requirements.txt for example.

Here's how you do it :

pip install -e git://github.com/{ username }/{ reponame }.git@{ tag name }#egg={ desired egg name }

Thanks to CodeIntel who posted the trick

Say Thanks
Respond

6 Responses
Add your response

9221
4929cd99d0f54b7fa03081f9ab8bb0d4

Thanks, exactly what i was looking for ;)

over 1 year ago ·
10435
7d684fb4d01a3e3d3c755b9241b52594

Your tittle says "tag or branch"; what about an specific branch? It works the same way?

over 1 year ago ·
10767
Me2

Yes it does work the same way.

over 1 year ago ·
14803
5b15f34346c688544959636415a47105

hi, how could you do the same thing with a git server over ssh, none of the optins in the documents works for me. https://pip.readthedocs.org/en/latest/reference/pip_install.html#git

over 1 year ago ·
26758
None

Don't you need to specify the git+ at the beginning of the github URL ?

over 1 year ago ·
29088

The website that we have been using here for the clash royale free gems can generate a lot of gems and gold.

5 months ago ·
Filed Under