gpt4 book ai didi

python - `pip install` 带有所有附加功能

转载 作者:行者123 更新时间:2023-12-03 16:10:04 25 4
gpt4 key购买 nike

怎么样一个pip install有所有额外功能吗?我知道做这样的事情:

pip install -e .[docs,tests,others]
是一种选择。但是,是否可以执行以下操作:
pip install -e .[all]
这个问题类似于 setup.py/setup.cfg install all extras .但是,那里的答案要求 setup.cfg文件进行编辑。可以吗 没有 修改 setup.pysetup.cfg ?

最佳答案

Is it possible to [install all extras] without modifying setup.py or setup.cfg?


直到包的作者在 setup.py 中声明了所有附加项。就像是
docs = […]
tests = […]
others = […]
all = docs + tests + others

setup(
…,
extras_require = {
'all': all,
'docs': docs,
'tests': tests,
'others': others,
},
…,
)

关于python - `pip install` 带有所有附加功能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64685527/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com