Encountered an error when “import cv2″ in Jupyterhub. This is a memo to solve it.

Amazon AMI doesn’t have a yum repo for the libgtk-x11-2.0.so.0. So, needed to install other distro packages. In this case, did used CentOS.

Lack of packages has been filled, reboot it. That’s it.