+-
python – 使用pip install -e指定extras_require
从git存储库安装时,如何管理使用pip安装extras_requires?

我知道当项目在pypi上时你可以做pip install项目[extra].
你必须做一个git 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]
点击查看更多相关文章

转载注明原文:python – 使用pip install -e指定extras_require - 乐贴网