使用pip或conda来管理软件包? [英] Use pip or conda to manage packages?

查看:136
本文介绍了使用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在这里所做的更好的解释了: https://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: https://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来管理软件包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆