当前位置:网站首页>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的区别》
边栏推荐
- Oauth2.0 - using JWT to replace token and JWT content enhancement
- pytorch 多分类中的损失函数
- [teacher Zhao Yuqiang] use the catalog database of Oracle
- Mysql database table export and import with binary
- Use abp Zero builds a third-party login module (I): Principles
- Kubesphere - set up redis cluster
- Kubernetes notes (II) pod usage notes
- When PHP uses env to obtain file parameters, it gets strings
- PHP用ENV获取文件参数的时候拿到的是字符串
- 智牛股项目--05
猜你喜欢
SVN分支管理
Tabbar settings
Fluentd facile à utiliser avec le marché des plug - ins rainbond pour une collecte de journaux plus rapide
pytorch DataLoader实现miniBatch(未完成)
Jedis source code analysis (I): jedis introduction, jedis module source code analysis
Merge and migrate data from small data volume, sub database and sub table Mysql to tidb
理解 YOLOV1 第一篇 预测阶段
Bio, NiO, AIO details
Support vector machine for machine learning
arcgis创建postgre企业级数据库
随机推荐
Characteristics and isolation level of database
Kubernetes notes (III) controller
The server data is all gone! Thinking caused by a RAID5 crash
Some thoughts on machine learning
Nacos service installation
Oauth2.0 - user defined mode authorization - SMS verification code login
Jedis source code analysis (II): jediscluster module source code analysis
Code generator - single table query crud - generator
Leetcode problem solving summary, constantly updating!
Tabbar settings
【系统设计】邻近服务
Disruptor learning notes: basic use, core concepts and principles
Oracle Database Introduction
About the difference between count (1), count (*), and count (column name)
Oauth2.0 - Introduction and use and explanation of authorization code mode
[set theory] relational closure (relational closure solution | relational graph closure | relational matrix closure | closure operation and relational properties | closure compound operation)
Synthetic keyword and NBAC mechanism
pytorch DataLoader实现miniBatch(未完成)
SVN分支管理
Kubernetes notes (10) kubernetes Monitoring & debugging