pip安装规范

2024-09-27 23:21:49 发布

您现在位置:Python中文网/ 问答频道 /正文

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

根据this 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

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


Tags: installpiphttpsgitgithubcombranchtree

热门问题