简体   繁体   中英

libgtk-x11-2.0.so.0 error opencv

I'm trying to install opencv on my server. I ran:

conda install -c https://conda.binstar.org/menpo opencv3

which worked successfully but then when I try to import cv2 I get the following error:

ImportError: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory

I tried apt-get install libgtk-x11-2.0.so.0 but the package doesn't exist.

My guess is that because I'm running a VPS, the gtk libraries are not present. Any ideas on how to deal with this? Thanks!

I got the same error and it was resolve by installing libgtk package. Run this command;

apt-get install libgtk2.0-0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM