What to do when pip & conda overlaps?

I have a reasonable understanding of the difference between conda installand pip install; As pipinstalls only python packages, but condacan install non-python binaries. However, there is some overlap between the two elements. This makes me ask:

What is a rule of thumb about whether to use condaor pipif both offer a package?

For example, it TensorFlowis available in both repositories, but from tensor documents :

in Anaconda, we recommend installing TensorFlow with pip install, rather than with, a command conda install.

But there are many other packages that overlap, for example numpy, scipyetc.


However, https://stackoverflow.com/a/414416/11/11 suggests that it conda installshould be the default, and pipshould only be used if the package is not available from conda. Is this true even for TensorFlowor other python-only packages?

+6
source share
1 answer

Tensorflow TensorFlow PyPI, . conda Anaconda / . , conda , , TensorFlow (). : " pip, TensorFlow . conda, , - conda, -. ."


:

Python conda install. , , - conda ( ), /.

, (, C-Extensions ..). , pip :

  • , .

  • conda

. , , ..

conda as-is, , , . , (segfault - ).

pip , ( ), . , . ( ) , conda -. - (, conda-forge anaconda-channel ).

, , . tensorflow conda, all conda-forge, tenorflow. , conda-forge anaconda. , NumPy TensorFlow -.

:

  • Python-, ( ). conda, , , pip. pip, conda, , , .
  • (, C C ), . "" :
  • , / . conda, , , .
  • , conda install ( , anaconda).
  • , , anaconda, conda .
  • , ( ).

, PyPI conda. , pip , . conda , "" . , (Mac, Windows, Linux) (32-, 64-), Python (2.7, 3.5, 3.6) , , NumPy. , . ( ), , , . , , pypi conda, , (, ), . , .

+4

All Articles