当前位置:网站首页>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的区别》
边栏推荐
- Use abp Zero builds a third-party login module (I): Principles
- ODL framework project construction trial -demo
- .NET程序配置文件操作(ini,cfg,config)
- PHP用ENV获取文件参数的时候拿到的是字符串
- Oauth2.0 - using JWT to replace token and JWT content enhancement
- Kubernetes notes (VIII) kubernetes security
- Mysql database
- There is no one of the necessary magic skills PXE for old drivers to install!!!
- Some thoughts on machine learning
- [Zhao Yuqiang] deploy kubernetes cluster with binary package
猜你喜欢
![[Zhao Yuqiang] deploy kubernetes cluster with binary package](/img/cc/5509b62756dddc6e5d4facbc6a7c5f.jpg)
[Zhao Yuqiang] deploy kubernetes cluster with binary package

伯努利分布,二项分布和泊松分布以及最大似然之间的关系(未完成)

【系统设计】邻近服务

Zhiniu stock project -- 04

Kubernetes notes (IV) kubernetes network

Bernoulli distribution, binomial distribution and Poisson distribution, and the relationship between maximum likelihood (incomplete)

Code generator - single table query crud - generator

Method of converting GPS coordinates to Baidu map coordinates

Zhiniu stock project -- 05

The most responsible command line beautification tutorial
随机推荐
Common interview questions
23 design models
使用conda创建自己的深度学习环境
[Zhao Yuqiang] deploy kubernetes cluster with binary package
Mysql database table export and import with binary
SVN分支管理
项目总结--04
Virtual memory technology sharing
Kubesphere - build MySQL master-slave replication structure
輕松上手Fluentd,結合 Rainbond 插件市場,日志收集更快捷
技术管理进阶——你了解成长的全貌吗?
In depth analysis of kubernetes controller runtime
88. 合并两个有序数组
Cesium 点击获三维坐标(经纬度高程)
Kubernetes notes (I) kubernetes cluster architecture
PMP notes
Oracle database synonym creation
pytorch DataLoader实现miniBatch(未完成)
Apple submitted the new MAC model to the regulatory database before the spring conference
pytorch 搭建神经网络最简版