pip和conda之间的实际区别 [英] Practical difference between pip and conda

查看:167
本文介绍了pip和conda之间的实际区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我还看到了其他有关pip和conda之间区别的问题,但是我还不清楚,请在标记为重复项之前考虑一下.

I saw other questions regarding difference between pip and conda, but it is not clear to me yet, please consider that before marking as duplicate.

如果我运行pip install seabornconda install seaborn,我会得到相同的结果吗?

If I run pip install seaborn and conda install seaborn Will I get the same result ?

我可以两次运行pip install seaborn,没有任何问题,但是如果我先运行pip install然后conda install,是否可以在两个不同的地方复制相同的程序包?

I can run pip install seaborn twice without any problem, but if I run pip install and then conda install do I get the same package duplicated in two different places ?

Conda和pip不能互换使用,但是有哪些例子呢?

Conda and pip cannot be used interchangeably but what are examples of that ?

推荐答案

  • pip和conda都以相同的最终结果安装了该软件包(相当多).可能会有细微的差异,例如压缩鸡蛋与否,这在某种程度上取决于conda程序包的创建方式. conda软件包始终是编译的二进制发行版,而不是源发行版.
  • 我不认为conda会将其安装在其他位置,它很可能会覆盖您的pip包.但这有点冒险,因为conda会很好地跟踪已安装的内容,并找出环境中所有conda软件包之间的所有依赖关系.您确实希望将自己限制在conda软件包中,并且如果确实需要,仅安装pip软件包.通过pip包创建conda包非常容易.
  • 不确定可互换",您可以可以将它们彼此并用.但是pip和conda不太了解彼此,因此说将软件包更新到新版本可能会遇到麻烦.
    • Both pip and conda install the package (pretty much) with the same end result. There may be minor differences, e.g. zipped egg or not, it depends a bit on how the conda package was created. The conda package is always a compiled binary distribution though, not a source distribution.
    • I don't think conda will install it in different places, it may well overwrite your pip package. But it's kind of risky because conda keeps nicely track of what's installed and figures out all dependencies betweeen all conda packages in the environment. You really want to limit yourself to conda packages and only install pip packages if you really have to. It's quite easy to create conda packages though from pip packages.
    • Not sure about "interchangeably", you can use them alongside each other. But pip and conda are not so aware of each other so you might run into trouble with say updating packages to new versions.
    • 总结:如果您使用的是conda软件包,最好坚持使用.您可以从conda生态系统的软件包版本和环境管理中获得最大收益.

      In summary: if you're using conda packages, best to stick with that. You get the best out of the conda ecosystem with it's package version and environment management.

      这篇关于pip和conda之间的实际区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆