Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pip install specific fork

I'm trying to pip install a specific fork of a repo, which is located here: https://github.com/grutz/flask-session/tree/ed62129fa1d9af36e77e9ce1de571d2c873a6c4e

Per this SO question, I've tried the following but no luck:

# pip install <link>
pip install https://github.com/grutz/flask-session/tree/ed62129fa1d9af36e77e9ce1de571d2c873a6c4e

# pip install git+<link>
pip install git+https://github.com/grutz/flask-session/tree/ed62129fa1d9af36e77e9ce1de571d2c873a6c4e

# pip install git+https://github.com/user/repo@branch
pip install git+https://github.com/grutz/flask-session@ed62129fa1d9af36e77e9ce1de571d2c873a6c4e

# pip install git+https://github.com/user/repo.git@branch
pip install git+https://github.com/grutz/flask-session.git@ed62129fa1d9af36e77e9ce1de571d2c873a6c4e

What am I doing wrong here? I can post my stack trace but I figured I'm missing something simple here and that would just add clutter.

like image 411
Johnny Metz Avatar asked Aug 08 '17 05:08

Johnny Metz


Video Answer


1 Answers

pip needs to know the name of the project; name it using egg= URL hash param:

pip install git+https://github.com/grutz/flask-session.git@ed62129fa1d9af36e77e9ce1de571d2c873a6c4e#egg=flask-session
like image 182
phd Avatar answered Oct 14 '22 02:10

phd