0
工作時,我在我的virtualenv收到以下錯誤跑import cv2;cv2.namedWindow('hello')
:cv2.namedWindow()不virtualenv中
OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script) in cvNamedWindow, file /io/opencv/modules/highgui/src/window.cpp, line 527
我試着做什麼建議還有,安裝了所有的依賴關係中所提到的OpenCV網站。並遵循那裏提到的步驟來安裝opencv。我在運行cmake時使用了WITH_GTK = ON標籤。
但是,當我使用cv2.namedWindow()
時,不會發生此錯誤。但是系統python不會發生錯誤。所以我按照link中提到的那樣做了。我在virtualenv站點包中創建了/usr/local/lib/python2.7/dist-packages/cv2.so的軟鏈接。
仍然錯誤仍然存在。誰能告訴我我要去哪裏?
先進的感謝