本文翻译自:What is the difference between pip and conda?
I know pip
is a package manager for python packages. 我知道pip
是python包的包管理器。 However, I saw the installation on IPython's website use conda
to install IPython. 但是,我看到IPython网站上的安装使用conda
来安装IPython。
Can I use pip
to install IPython? 我可以使用pip
来安装IPython吗? Why should I use conda
as another python package manager when I already have pip
? 当我已经拥有pip
时,为什么我应该使用conda
作为另一个python包管理器?
What is the difference between pip
and conda
? pip
和conda
什么区别?
#1楼
参考:https://stackoom.com/question/1Q5gS/pip和conda有什么区别
#2楼
Quoting from the Conda blog : 引自Conda博客 :
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. 我们长期参与python世界,我们都知道pip,easy_install和virtualenv,但这些工具并不能满足我们所有的特定要求。 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. 主要问题是它们专注于Python,忽略了非Python库依赖项,如HDF5,MKL,LLVM等,它们的源代码中没有setup.py,也没有将文件安装到Python的站点中-packages目录。
So Conda is a packaging tool and installer that aims to do more than what pip
does; 所以Conda是一个打包工具和安装程序,旨在做的不仅仅是pip
做的事情; handle library dependencies outside of the Python packages as well as the Python packages themselves. 处理Python包之外的库依赖项以及Python包本身。 Conda also creates a virtual environment, like virtualenv
does. Conda还创建了一个虚拟环境,就像virtualenv
一样。
As such, Conda should be compared to Buildout perhaps, another tool that lets you handle both Python and