What is the meaning of “Failed building wheel for X” in pip install?

后端 未结 12 1060
执念已碎
执念已碎 2020-12-07 13:54

This is a truly popular question here at SO, but none of the many answers I have looked at, clearly explain what this error really mean, and why it occurs.

One sour

12条回答
  •  被撕碎了的回忆
    2020-12-07 14:17

    Error :

    System : aws ec2 instance (t2 small)

    issue : while installing opencv python via

    pip3 install opencv-python

      Problem with the CMake installation, aborting build. CMake executable is cmake
      
      ----------------------------------------
      Failed building wheel for opencv-python
      Running setup.py clean for opencv-python
    
    

    What worked for me

    pip3 install --upgrade pip setuptools wheel

    After this you still might received fallowing error error

        from .cv2 import *
    ImportError: libGL.so.1: cannot open shared object file: No such file or directory
    

    Installing libgl solved the error for me.

    sudo apt update
    sudo apt install libgl1-mesa-glx
    

    Hope this helps

提交回复
热议问题