How to install Python 2.7 bindings for OpenCV using MacPorts

后端 未结 3 1016
情书的邮戳
情书的邮戳 2020-12-14 04:25

When trying to \"import cv\" in python I get: \"ImportError: No module named cv\". This question has appeared in many forms, but I haven\'t found the answer that helps.

3条回答
  •  北荒
    北荒 (楼主)
    2020-12-14 04:55

    I was wondering if you have installed opencv to the OSX version of the python instead of macports.

    have you tried easy install, I normally use easy_install to install the packages.

    /opt/local/bin/easy_install-2.7 opencv
    

提交回复
热议问题