我使用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来管理软件包?
发布评论