opencv-python icon indicating copy to clipboard operation
opencv-python copied to clipboard

opencv-python doesn't have GUI ?

Open areche opened this issue 4 months ago • 1 comments

Hi! I am trying to install the GUI version of opencv-python as opposed to the non-GUI version called opencv-python-headless. However, no matter which version of opencv-python I install, the GUI is not always present. I had to go back to version 4.5.5.64 to find a wheel that has some sort of GUI.

# pip install opencv-python==4.5.5.64; python -c "import cv2; print(cv2.getBuildInformation());"
Collecting opencv-python==4.5.5.64
  Downloading opencv_python-4.5.5.64-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (18 kB)
Requirement already satisfied: numpy>=1.21.2 in /usr/local/lib/python3.12/dist-packages (from opencv-python==4.5.5.64) (1.26.4)
Downloading opencv_python-4.5.5.64-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (60.5 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.5/60.5 MB 52.6 MB/s eta 0:00:00
Installing collected packages: opencv-python
Successfully installed opencv-python-4.5.5.64
.
.
.
  GUI:                           QT5
    QT:                          YES (ver 5.15.0 )
      QT OpenGL support:         NO
    GTK+:                        NO
    VTK support:                 NO
.
.
.
# pip install opencv-python==4.6.0.66; python -c "import cv2; print(cv2.getBuildInformation());"
Collecting opencv-python==4.6.0.66
  Downloading opencv_python-4.6.0.66-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (18 kB)
Requirement already satisfied: numpy>=1.21.2 in /usr/local/lib/python3.12/dist-packages (from opencv-python==4.6.0.66) (1.26.4)
Downloading opencv_python-4.6.0.66-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (60.9 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.9/60.9 MB 73.4 MB/s eta 0:00:00
Installing collected packages: opencv-python
Successfully installed opencv-python-4.6.0.66
.
.
.
  GUI:                           NONE
    GTK+:                        NO
    VTK support:                 NO
.
.
.
# pip install opencv-python==4.7.0.72; python -c "import cv2; print(cv2.getBuildInformation());"
Collecting opencv-python==4.7.0.72
  Using cached opencv_python-4.7.0.72-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (18 kB)
Requirement already satisfied: numpy>=1.21.2 in /usr/local/lib/python3.12/dist-packages (from opencv-python==4.7.0.72) (1.26.4)
Using cached opencv_python-4.7.0.72-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (61.8 MB)
Installing collected packages: opencv-python
Successfully installed opencv-python-4.7.0.72
.
.
.
  GUI:                           NONE
    GTK+:                        NO
    VTK support:                 NO
.
.
.
# pip install opencv-python==4.8.0.74; python -c "import cv2; print(cv2.getBuildInformation());"
Collecting opencv-python==4.8.0.74
  Downloading opencv_python-4.8.0.74-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (19 kB)
Requirement already satisfied: numpy>=1.21.2 in /usr/local/lib/python3.12/dist-packages (from opencv-python==4.8.0.74) (1.26.4)
Downloading opencv_python-4.8.0.74-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (61.7 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.7/61.7 MB 64.3 MB/s eta 0:00:00
Installing collected packages: opencv-python
Successfully installed opencv-python-4.8.0.74
.
.
.
  GUI:                           NONE
    GTK+:                        NO
    VTK support:                 NO
.
.
.

Same for all of the versions after this one.

Am I doing something wrong?

areche avatar Aug 28 '25 13:08 areche

I faced the same issue and documented all fixes here (PR #1158). Hope it helps!

ruchithakp6364 avatar Dec 03 '25 13:12 ruchithakp6364