提示工具包和提示工具包有什么区别 [英] What is the difference between prompt-toolkit and prompt_toolkit
问题描述
我最近运行了一个conda列表,发现我有两个不同的包,分别是:提示符-提示工具包3.0.4和提示-提示工具包3.0.4。我尝试使用问题标题的确切措辞来搜索它们之间的区别,而所出现的只是关于hint_toolkit的文档,但没有回答问题。我想了解这些软件包之间的区别,以便了解为什么同时需要这两个软件包以及何时使用它们?
I recently ran a conda list, and I find that I have two different packages called prompt-toolkit 3.0.4 and prompt_toolkit 3.0.4. I tried to google the difference between them, using essentially the exact wording of my question title, and all that came up was documentation on prompt_toolkit, which did not answer the question. I would like to understand the difference between these packages, so that I can understand why I need both, and when to use which?
推荐答案
prompt_toolkit
是元软件包,用作 prompt-toolkit
的别名。 prompt_toolkit = 3.0.4仅具有一个依赖项hint-toolkit = 3.0.4,除此之外没有任何作用。因此,每当安装hint_toolkit时,您都将插入具有相同版本(major.minor.patch)的提示符。
prompt_toolkit
is a meta-package and serves as an alias of prompt-toolkit
. prompt_toolkit=3.0.4 has only one dependency prompt-toolkit=3.0.4 and does nothing apart from that. Therefore whenever you install prompt_toolkit, you will pull in prompt-toolkit with the same version (major.minor.patch).
您可以使用 conda搜索--info
conda search --info prompt_toolkit=3.0.4
请您
prompt_toolkit 3.0.4 0
----------------------
file name : prompt_toolkit-3.0.4-0.conda
name : prompt_toolkit
[...]
dependencies:
- prompt-toolkit >=3.0.4,<3.0.5.0a0
对于功能,您只需要使用quick-toolkit即可,但是quick_toolkit作为兼容层存在。
For functionality you only need prompt-toolkit, but prompt_toolkit exists as a compatibility layer.
这篇关于提示工具包和提示工具包有什么区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!