Running OpenCV from a Python virtualenv

前端 未结 3 787
你的背包
你的背包 2020-12-02 19:40

I\'m trying to install OpenCV within a virtualenv on my Ubuntu Server 12.04. I found a thread discussing this but managed to extract no information from it.

I tried

3条回答
  •  春和景丽
    2020-12-02 19:59

    Fired up a virtualenv and followed this guide: http://www.samontab.com/web/2011/06/installing-opencv-2-2-in-ubuntu-11-04/ , up until manipulating and copying the cv shared objects. Instead, I copied cv.so (from my OpenCV-2.2.0/lib directory) to my virtualenv site-packages (eg. env/lib/python2.7/site-packages/). Once cv.so was in my environment, I was able to import cv within python.

提交回复
热议问题