相关疑难解决方法(0)

使用pip安装特定的git commit

我正在开发一个django应用程序,我正在使用pip来管理我的需求.如何安装特定的git提交?

在我的情况下,我需要安装此提交:https: //github.com/aladagemre/django-notification/commit/2927346f4c513a217ac8ad076e494dd1adbf70e1

git install pip commit

153
推荐指数
3
解决办法
5万
查看次数

pip 安装特定的 fork

我正在尝试pip install一个 repo 的特定分支,它位于这里:https : //github.com/grutz/flask-session/tree/ed62129fa1d9af36e77e9ce1de571d2c873a6c4e

根据这个 SO question,我尝试了以下但没有运气:

# 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
Run Code Online (Sandbox Code Playgroud)

我在这里做错了什么?我可以发布我的堆栈跟踪,但我想我在这里遗漏了一些简单的东西,这只会增加混乱。

python pip git-fork

5
推荐指数
1
解决办法
2680
查看次数

标签 统计

pip ×2

commit ×1

git ×1

git-fork ×1

install ×1

python ×1