使用pip或conda来管理软件包?

编程入门 行业动态 更新时间:2024-10-27 14:26:25
本文介绍了使用pip或conda来管理软件包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我使用matlab进行机器学习已有很长时间了,最​​近我切换到python,并且使用其软件包管理器pip安装了某些软件包,并成功安装了许多软件包.几天前,我开始使用conda,以前安装的所有软件包都被覆盖.

I have been doing machine-learning for quite a long time using matlab and have recently switched to python and for installing certain packages used its package manager pip and successfully installed many packages. A few days ago I started using conda and all my previously installed packages are getting overridden.

我真的想知道pip和conda之间的区别,以及如果我使用pip而不是conda安装软件包会发生什么?

I really want to know the difference between pip and conda and what happens if I use pip to install packages instead of conda?

推荐答案

pip和conda有共同点和不同之处.没有什么比Jake VanderPlas在这里所做的更好的解释了: jakevdp.github.io/blog/2016/08/25/conda-myths-and-misconceptions/

pip and conda have common points and differences. It is hard to explain better than what Jake VanderPlas did here: jakevdp.github.io/blog/2016/08/25/conda-myths-and-misconceptions/

在您的用例中,最好还是擦除早期点安装的软件包并仅依靠conda.如果由于conda中软件包的不可用而无法执行此操作,则可以在conda中安装pip in ,然后使用conda install pip. (来自上面的链接).

For your usecase, it would be best anyway to wipe your earlier pip-installed packages and to rely only on conda. If this is not possible due to the non-availability of packages in conda, you can install pip in conda and then use conda install pip. (from the link above).

更多推荐

使用pip或conda来管理软件包?

本文发布于:2023-07-04 06:37:44,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1019731.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:软件包   pip   conda

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!