I am trying to use opencv but whenever I try to import the package I get the
RuntimeError: module compiled against API version 0xa but this version of numpy is 0x7
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
import cv2
ImportError: numpy.core.multiarray failed to import
error. So I did some research and found the question with an identical problem to my own, but the answers provided there all cause a syntax error for me in the python command line. This is the most common answer I've seen that doesn't work for me:
pip install -U numpy
And several variations of that that all result in syntax errors. I have python 2.7.5 and did have numpy 1.9.1, but I uninstalled it when I was trying to figure out the problem, so I currently have numpy 1.7.1 downloaded. I asked for help with this in the comments section of my previous question, but a bunch of people marked my question as a duplicate of some other question (that doesn't work for me) and now I'm not getting much help. That said, if anyone knows how to solve my problem, that would be much appreciated.