天天看點

pip和conda的差別

1.pip隻能安裝python包,而conda可以安裝由任何語言編寫的包

2.pip不能建立虛拟環境,需要借助另外的包,例如

virtualenv

,而conda可以建立虛拟環境。

3.pip是按照python時自帶的,而conda需要安裝anaconda才能用。

Comparison of conda and pip

conda pip
manages binaries wheel or source
can require compilers no yes
package types any Python-only
create environment yes, built-in no, requires virtualenv or venv
dependency checks yes no
package sources Anaconda repo and cloud PyPI

參考

https://www.anaconda.com/understanding-conda-and-pip/

https://stackoverflow.com/questions/20994716/what-is-the-difference-between-pip-and-conda