Ask Your Question
0

Issue installing cv2 in windows

asked 2018-04-12 00:56:46 -0600

vkpanchal gravatar image

updated 2018-04-12 01:14:59 -0600

berak gravatar image

I have followed all the steps given in this link.

In Installing OpenCV from prebuilt binaries, after step 8: Copy cv2.pyd to C:/Python27/lib/site-packeges and step 9:Open Python IDLE and type following codes in Python terminal I got below error... Error: RuntimeError: module compiled against API version 0xa but this version of numpy is 0x7

Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> import cv2 ImportError: numpy.core.multiarray failed to import

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-04-12 01:13:48 -0600

berak gravatar image

updated 2018-04-12 01:28:29 -0600

your numpy version is too old, it needs >= 1.11

edit flag offensive delete link more

Comments

Thank you for this comment. I was having the same issue. It is not that easy though to install numpy with an old version of python (the version in the tutorial link does not have pip). I had to install version 2.7.15 and then uninstall numpy

python -m pip uninstall numpy

then install numpy (after placing the wheels file in the python27 directory)

python -m pip install --user numpy

finally works!

RSnSD gravatar imageRSnSD ( 2018-12-31 21:45:20 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2018-04-12 00:56:46 -0600

Seen: 375 times

Last updated: Apr 12 '18