当前位置:网站首页>conda和pip的区别
conda和pip的区别
2022-07-03 06:05:00 【开心的饲养员】
python的包管理工具为什么有了pip 我们还需要conda?
之前一直使用conda和pip ,有时候经常会两者混用。但是今天才发现二者装的东西不是在一个地方的,所以发现有的东西自己装了,但是在运行环境的时候发现包老是识别不了,一直都特别疑惑,直到今天注意到这个问题,所以来总结一下二者的区别。
简短概要
pip
- pip专门管理Python包
- 编译源码中的所有内容。 (源码安装)
- 由核心Python社区所支持(即,Python 3.4+包含可自动增强pip的代码)。
conda
- Python不可知论者。 现有软件包的主要重点是Python,而conda本身是用Python编写的,但你也可以为C库或R软件包或任何其他软件包提供conda软件包。
- 安装二进制文件。 有一个名为conda build的工具,它可以从源代码构建软件包,但conda install本身会安装已经构建的conda软件包中的东西。
- 外部。 Conda是Anaconda的包管理器,由Continuum Analytics提供的Python发行版,但它也可以在Anaconda之外使用。 您可以使用现有的Python安装,通过pip安装它(尽管除非您有充分理由使用现有安装,否则不建议这样做)。
进一步说:
- conda可以让你同时管理安装处理有关的python任务和跟python无关任务,即pip可以允许在任何环境中安装python包,conda允许你在conda环境中安装任何语言包(包括C语言或者python)。
- conda使用一个新的包格式,你不能交替使用conda和pip,因为pip不能安装和解析conda的包格式。可以使用这两个工具,但是它们是不能交互的。
- 由于pip是从源代码安装的,所以如果你无法编译源代码,那么安装它可能会很痛苦(这在Windows上尤其如此,但如果软件包有一些困难的C或FORTRAN库,甚至在Linux上也是如此)依赖)。
- Conda从二进制文件安装,这意味着有人(例如Continuum)已经完成了编译软件包的艰苦工作,因此安装非常简单。不过,个人感觉conda安装有些慢。(相对pip 来说)
- 如果您有兴趣构建自己的软件包,也有一些差异。 例如,pip建立在setuptools之上,而conda使用它自己的格式,这有一些优点(比如静态,而且Python不可知)。
原文:《pip和conda的区别》
边栏推荐
- Kubernetes notes (VI) kubernetes storage
- 智牛股--03
- Sorry, this user does not exist!
- How to create and configure ZABBIX
- [system design] proximity service
- Common interview questions
- Oauth2.0 - explanation of simplified mode, password mode and client mode
- 表达式的动态解析和计算,Flee用起来真香
- BeanDefinitionRegistryPostProcessor
- Skywalking8.7 source code analysis (II): Custom agent, service loading, witness component version identification, transform workflow
猜你喜欢
![[teacher Zhao Yuqiang] use Oracle's tracking file](/img/0e/698478876d0dbfb37904d7b9ff9aca.jpg)
[teacher Zhao Yuqiang] use Oracle's tracking file

Code generator - single table query crud - generator

pytorch 多分类中的损失函数

Advanced technology management - do you know the whole picture of growth?

Kubernetes notes (IV) kubernetes network

Kubernetes notes (VI) kubernetes storage

技术管理进阶——你了解成长的全貌吗?

Deep learning, thinking from one dimensional input to multi-dimensional feature input
![[teacher Zhao Yuqiang] index in mongodb (Part 2)](/img/a7/2140744ebad9f1dc0a609254cc618e.jpg)
[teacher Zhao Yuqiang] index in mongodb (Part 2)

Bernoulli distribution, binomial distribution and Poisson distribution, and the relationship between maximum likelihood (incomplete)
随机推荐
Decision tree of machine learning
[teacher Zhao Yuqiang] Cassandra foundation of NoSQL database
Some thoughts on machine learning
Detailed explanation of findloadedclass
Oauth2.0 - using JWT to replace token and JWT content enhancement
Advanced technology management - do you know the whole picture of growth?
Bio, NiO, AIO details
Understand expectations (mean / estimate) and variances
Jedis source code analysis (I): jedis introduction, jedis module source code analysis
Cesium Click to obtain the longitude and latitude elevation coordinates (3D coordinates) of the model surface
1. 两数之和
Detailed explanation of contextclassloader
Understand the first prediction stage of yolov1
[teacher Zhao Yuqiang] kubernetes' probe
Phpstudy setting items can be accessed by other computers on the LAN
[system design] proximity service
tabbar的设置
Bernoulli distribution, binomial distribution and Poisson distribution, and the relationship between maximum likelihood (incomplete)
项目总结--04
Kubernetes notes (VI) kubernetes storage