[英]Difference between `python3-ipython` and `ipython3` packages in Ubuntu 20.04
While querying on Ubuntu 20.04 for an ipython package (tried pip3 install ipython
first, but that didn't give me the ipython3
binary I was looking for) I found there are two packages:在 Ubuntu 20.04 上查询 ipython package 时(尝试
pip3 install ipython
,但这并没有给我我正在寻找的ipython3
二进制文件)我发现有两个包:
$ ~/dev/romanyh$ sudo apt search ipython3
Sorting... Done
Full Text Search... Done
ipython3/focal,focal,now 7.13.0-1 all [installed]
Enhanced interactive Python 3 shell
python3-ipython/focal,focal,now 7.13.0-1 all [installed]
Enhanced interactive Python shell (Python 3 version)
I first tried python3-ipython
because others (eg, pip
and venv
) follow this naming convention, but it didn't give me the ipython3
binary I was looking for.我第一次尝试
python3-ipython
因为其他人(例如pip
和venv
)遵循这个命名约定,但它没有给我我正在寻找的ipython3
二进制文件。 It seems the effect was similar to running pip3 install ipython
.看起来效果类似于运行
pip3 install ipython
。
I ended up installing both, the ipython3
package did get me the binary I was looking for.我最终安装了两者,
ipython3
package 确实让我得到了我正在寻找的二进制文件。
My question is: What is the difference between these packages?我的问题是:这些包有什么区别? Why are both of them available?
为什么两者都可用?
I had this very same doubt today.我今天也有同样的疑问。 Normally I get better result installing the distribution specific packages than using pip.
通常,安装特定于发行版的软件包比使用 pip 获得更好的结果。 (as already explained in the comments)
(正如评论中已经解释的那样)
Edited: I though you should get the same results installing any of those packages... I was not able to execute ipython3 until I installed the package ipython.编辑:我虽然你应该得到相同的结果安装任何这些软件包......我无法执行 ipython3,直到我安装了 package ipython。 (this was in ubuntu cotainer on docker)
(这是在 docker 上的 ubuntu 容器中)
python3 (it is almost an "empty" package) that depends on python3-ipython python3 (它几乎是一个“空”包)依赖于python3-ipython
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.