问题
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?
回答1:
As @ZdaR suggested in the comment above, it was because opencv wasn't installed through pip.
In any case I wish you all a beautiful day.
来源:https://stackoverflow.com/questions/42313103/why-doesnt-pip-freeze-show-opencv