1

I try to install opencv for python. I use windows x64. I install numpy1.6 and python2.7. I have installed opencv2.4.9. I install them succesfully. I guide from this page. It says that

Now open your "Python IDLE" ( from Start > All Programs > Python 2.7 > Python IDLE ) and just type following : import cv2

When I run import cv2, I get below error :

module compiled against API version 9 but this version of numpy is 6.

How can I know compatible version?

I know this question enter link description here. But I installed latest numpy version, it didn't solve my problem.

1
  • 4
    I don't agree with the advice on the duplicate question. Install the Anaconda distribution. Commented Apr 20, 2015 at 13:21

1 Answer 1

2

Use https://www.scivision.co/install-opencv-3-0-x-for-python-on-windows/ It's going to lead you to http://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv where you can download a .whl installer. After you download it, you can run it using pip install some-file.whl assuming you have pip installed. After that you should be able to import cv2.

I had the same problem and I did a ton of research but this is the only one that worked.

Sign up to request clarification or add additional context in comments.

1 Comment

this solution worked for me, but needed to rename ton win 32, although I use Windows 64 and python is installed correctly. It was the same for numpy.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.