Why doesn't pip freeze show opencv?

醉酒当歌 提交于 2020-01-15 06:08:46

问题


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

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