
我正在嘗試在我的 Ubuntu 15.04 伺服器上安裝 opencv。我正在使用conda
套件管理器。
conda install -c https://conda.binstar.org/menpo opencv3
當我嘗試匯入cv2
Python 套件時,出現以下錯誤。
ImportError: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
如何安裝這個依賴項?我嘗試了 apt-get 安裝,libgtk-x11-2.0.so.0
但它似乎不存在。
謝謝!
答案1
至少在 Ubuntu 16.04 中,libgtk2.0-0
包含libgtk-x11-2.0.so.0
,所以這有效:
apt-get install libgtk2.0-0