Ask Your Question
0

When I try to import cv2 into python(command line)

asked 2018-07-30 21:32:48 -0600

I tried importing cv2 into the python (command line) and got the following error message: "RuntimeError: module compiled against API version 0xa but this version of numpy is 0x7 Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: numpy.core.multiarray failed to import"

I don't know if I import into python idle, it will be any different. Problem is I can't even open my Python idle. Any help?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-07-30 22:41:50 -0600

berak gravatar image

it uses numpy arrays for all matrices, so you need to have a recent numpy 1.09 installed, before you can use cv2

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-07-30 21:32:48 -0600

Seen: 158 times

Last updated: Jul 30 '18