Ubuntu – Installing libgtk-x11-2.0.so.0 in Ubuntu 15.04

15.04aptopencvpython

I'm trying to install opencv on my Ubuntu 15.04 server. I'm using the conda package manager.

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

When I try importing cv2, the Python package, I get the following error.

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

How do I install this dependency? I tried apt-get installing libgtk-x11-2.0.so.0 but it doesn't seem to exist.

Thanks!

Best Answer

  • At least in Ubuntu 16.04, libgtk2.0-0 contains libgtk-x11-2.0.so.0, so this works:

    apt-get install libgtk2.0-0
    
  • Related Question