Last Updated: May 23, 2019
· oleiade

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

13 Responses
Add your response


Thanks, exactly what i was looking for ;)

over 1 year ago ·

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

over 1 year ago ·

Yes it does work the same way.

over 1 year ago ·

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 ·

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

over 1 year ago ·

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

over 1 year ago ·

I agree about declaring variables at the beginning of the function, but not about "saving up some bytes and making the code look uglier", that's just premature optimization and unnecessary if you're minimizing your code later (Concat+UglifyJS+gzip). I'll only recommend this if you're working on a project of your own, but for other developers it might be harder to read.
soundcloud to mp3

over 1 year ago ·

wow, it works, thank you a lot.
https://soundcloudify.com also works well, check out

8 months ago ·

You can use this website https://scdownloader.online to download songs from soundcloud.

3 months ago ·

Thanks for sharing this quality information with us. I really enjoyed reading.
Keep on posting!

3 months ago ·

<a href="https://www.sounddownmp3.com/">soundcloud to mp3</a>
nice one

25 days ago ·