pip和conda有什么区别? [英] What is the difference between pip and conda?

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

问题描述

我知道 pip 是python包的包管理器。但是,我看到IPython网站上的安装使用 conda 来安装IPython。

I know pip is a package manager for python packages. However, I saw the installation on IPython's website use conda to install IPython.

我可以使用 pip 安装IPython?当我已经 pip 时,为什么我应该使用 conda 作为另一个python包管理器?

Can I use pip to install IPython? Why should I use conda as another python package manager when I already have pip?

pip conda 之间有什么区别?

推荐答案

引自 Conda博客


长期参与python世界,我们都是了解pip,easy_install和virtualenv,但这些工具并不能满足我们的所有特定要求。主要问题是它们专注于Python,忽略了非Python库依赖项,如HDF5,MKL,LLVM等,它们的源代码中没有setup.py,也没有将文件安装到Python的站点中-packages目录。

Having been involved in the python world for so long, we are all aware of pip, easy_install, and virtualenv, but these tools did not meet all of our specific requirements. The main problem is that they are focused around Python, neglecting non-Python library dependencies, such as HDF5, MKL, LLVM, etc., which do not have a setup.py in their source code and also do not install files into Python’s site-packages directory.

所以Conda是一个打包工具和安装程序,其目的是做更多的事情 pip 确实;处理Python包的库外部以及Python包本身。 Conda还创建了一个虚拟环境,如 virtualenv 那样。

So Conda is a packaging tool and installer that aims to do more than what pip does; handle library dependencies outside of the Python packages as well as the Python packages themselves. Conda also creates a virtual environment, like virtualenv does.

因此,应将Conda与 Buildout 也许,这是另一个可以让你处理Python和非Python安装任务的工具。

As such, Conda should be compared to Buildout perhaps, another tool that lets you handle both Python and non-Python installation tasks.

因为Conda引入了新的包装格式,所以你不能互换地使用 pip 和Conda; pip 无法安装Conda包格式。你可以并排使用这两个工具(通过安装 pip conda install pip )但它们也不能互操作。

Because Conda introduces a new packaging format, you cannot use pip and Conda interchangeably; pip cannot install the Conda package format. You can use the two tools side by side (by installing pip with conda install pip) but they do not interoperate either.

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

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