使用pip install -e指定extras_require [英] Specify extras_require with pip install -e
本文介绍了使用pip install -e指定extras_require的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道你可以做 pip安装项目[ extra]
当项目在pypi上。
你必须做 pip install -e git + https://github.com/user/ project.git#egg = project
对于一个git repo,但我没有设法找到如何将这两个选项连接在一起。
解决方案
这应该适用于远程回购:
pip install -e git + https:// github.com/user/project.git#egg=project[extra]
这个适用于本地的(感谢@ Kurt-Bourbaki):
pip install -e。[extra]
How can one manage to install extras_requires with pip when installing from a git repository ?
I know that you can do pip install project[extra]
when the project is on pypi.
And you have to do pip install -e git+https://github.com/user/project.git#egg=project
for a git repo but I didn't manage to find how to link these two options together.
解决方案
This should work for remote repos:
pip install -e git+https://github.com/user/project.git#egg=project[extra]
And this for local ones (thanks to @Kurt-Bourbaki):
pip install -e .[extra]
这篇关于使用pip install -e指定extras_require的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文