Search code examples
pythonopencvpippackage-managers

Why doesn't pip freeze show opencv?


I've installed OpenCV on my mac and I can import it in Python:

>>> import cv2
>>> cv2.__version__
'3.2.0'

but when I use pip freeze the package is not in the list:

$ pip freeze | grep cv

How can this be?


Solution

  • As @ZdaR suggested in the comment above, it was because OpenCV wasn't installed through pip.