环境:Ubuntu18.04 pycharm pip安装的opencv4.3.0.36
问题:一使用cv2.imshow这种需要创建图形界面的函数就报错
报错信息:Gtk-ERROR **: 13:39:35.637: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported
输入
pkg-config --libs gtk+-3.0
输出结果:
-lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0
输入
pkg-config --libs gtk+-2.0 clutter-gtk-1.0 gthread-2.0
输出
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
Package clutter-gtk-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory contai