OpenCV 2.4.8: module compiled against API version 9

前端 未结 3 1572
礼貌的吻别
礼貌的吻别 2020-12-05 10:49

I just installed the opencv 2.4.8 . I\'m using python 2.7. I tried to add the opencv lib to python according to this tutorial. but when I tried to import the opencv I got t

相关标签:
3条回答
  • 2020-12-05 11:16

    If you want you can get the 1.9.1 superpack from the following URL.

    numpy-1.9.1-win32-superpack-python2.7

    This resolved my issue likady split. :)

    0 讨论(0)
  • 2020-12-05 11:23

    I got this error too. Finally I figure out I should update numpy to the latest version.

    The version of numpy in the tutorial is version 7, but now the team is using version 9 (but numpy team name it 1.8 publicly).

    For convenience, check here to download the version I use.

    To download the latest version, check here.

    0 讨论(0)
  • 2020-12-05 11:27

    I build OpenCV from source and the problem solved. I used CMake to do that.Don't forget to change the path to the new bin directory in your environment variable.

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