Installing opencv for python3

前端 未结 3 1573
北恋
北恋 2020-12-18 19:18

Has anyone tried to install opencv for python3?. As stated here http://opencv.willowgarage.com/wiki/InstallGuide its support status is unknown. So I want to try it:

相关标签:
3条回答
  • 2020-12-18 19:51

    I got the thing to at least build and install. It can load the cv2 module just fine. Haven't tested too much though.

    Details: https://stackoverflow.com/a/21212023/3075814

    0 讨论(0)
  • 2020-12-18 19:55

    Use the pip application.

    On ubuntu:

    sudo apt install python3-pip

    and so, on command line:

    pip3 install --upgrade pip

    pip3 install opencv-python

    0 讨论(0)
  • 2020-12-18 19:56

    At the moment OpenCV supports Python 2.x only. OpenCV (including OpenCV 2.4) does not compiles with Python 3.x.

    Python3 support is already in wishlist for future versions of OpenCV. But currently there are no activities in this direction and you are welcome to create and contribute a patch resolving the compatibility issues.

    0 讨论(0)
提交回复
热议问题