简体   繁体   English

pip安装特定的fork

[英]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 我正在尝试pip install一个repo的特定fork,它位于: 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. 我可以发布我的堆栈跟踪,但我想我在这里缺少一些简单的东西,这只会增加混乱。

pip needs to know the name of the project; pip需要知道项目的名称; name it using egg= URL hash param: 使用egg= URL hash param命名它:

pip install git+https://github.com/grutz/flask-session.git@ed62129fa1d9af36e77e9ce1de571d2c873a6c4e#egg=flask-session

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM