简体   繁体   English

pip从bitbucket repo的分支安装

[英]pip install from bitbucket repo's branch

Similar to pip install from git repo branch git repo branch的pip install类似

Although, it still does not work. 虽然,它仍然无法正常工作。 Is it a difference between github and bitbucket? 这是github和bitbucket之间的区别吗?

I'm using the FROM python:latest docker image and my dockerfile has RUN pip install -r requirements.txt 我正在使用FROM python:latest docker镜像,我的dockerfile有RUN pip install -r requirements.txt

My requirements.txt has: 我的requirements.txt有:

-e git+https://bitbucket.org/nicfit/eyed3.git@py3#egg=eyed3

but it gives the error: 但它给出了错误:

fatal: repository ' https://bitbucket.org/nicfit/eyed3.git/ ' not found 致命:未找到存储库' https://bitbucket.org/nicfit/eyed3.git/ '

eyeD3 is an hg repo, not a git repo. eyeD3是一个hg repo,而不是一个git repo。

Try something similar to this: 尝试类似的东西:

pip install -e hg+https://bitbucket.org/nicfit/eyed3#egg=eyeD3

see https://pip.pypa.io/en/latest/reference/pip_install.html#mercurial 请参阅https://pip.pypa.io/en/latest/reference/pip_install.html#mercurial

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

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