What is the advantage of Pip over Anaconda?

◇◆丶佛笑我妖孽 提交于 2020-01-11 08:46:32

问题


So, I have seen What is the difference between pip and conda?. However, all of the answers there appear to be from Anaconda supporters. So, that made me wonder: why is pip still the standard? why hasn't everyone just moved to anaconda?

I understand that anaconda only works with its own python, but is that the only disadvantage?


回答1:


Based on my limited experience, I would guess that the main advantage of pip over conda is the ability to still install packages that are not available from conda or Anaconda.org.

https://conda.io/docs/using/pkgs.html#install-non-conda-packages - says basically the same.

I have been using conda for a while now, mostly studying Machine Learning and related subjects. I am a happy user 99.99% of the time. But when one faces challenges like building and installing tensorflow with GPU support for Mac that would support his or her rather specific/outdated GPU, one can't really rely on conda.




回答2:


One huge advantage of pip is the built-in ability to install packages system-wide via f.ex.

sudo -H pip install ipython

It actually is smart enough to do this by default if run as the root user, installing to some directory in the global execution path. (/usr/local/bin?)

What can actually be considered an advantage for some things is that pip compiles packages (by default). So some packages like f.ex. theano which are actually optimized upon installation should not be installed via conda, or you are possibly missing out on this.

Finally, as mentioned, pip is directly linked to Python's package archive, whereas conda assumedly needs to be told when a new package was uploaded via a new configuation.



来源:https://stackoverflow.com/questions/36068985/what-is-the-advantage-of-pip-over-anaconda

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!