problem installing opencv-python on Windows
I am a newbie to python and opencv although I have been programming in various languages (but mostly 'c') for some time. I am trying to follow the tutorial to install opencv-python on Windows 7/sp1 x64 on the web page: "http://docs.opencv.org/3.0-beta/doc/py_tutorials/py_setup/py_table_of_contents_setup/py_table_of_contents_setup.html#py-table-of-content-setup"
I got down to the point where the instructions say: "import cv2" . when I enter this I get "RuntimeError: module compiled against API version 9 but this version of numpy is 7 Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: numpy.core.multiarray failed to import"
I have tried downloading 3.1.0, 3.0.0, and 2.4.13 of the opencv with the same error.
any suggestions what I can do to get past this problem.
please try to update numpy (not opencv) to latest version
OK, thanks I will give it a try.
I have found that installing a later version of numpy is rather difficult as there does not seem to be a binary available. I have downloaded the build from anaconda (supposedly has both Python 2.7 and Numpy) and will give that a try instead.
I've successfully installed numpy 1.11 (numpy.org) : setup.py build, setup.py install win-amd..py. Numpy installs itself in /users/appdata/local/programs/Python /python35/lib/site-packages/numpy-1.11.1 Had cmake complain of import trouble, it turned out to be reference to numpy include directory. By the way if you're using cmake, cmake prefers python 3.5.x