我從http://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv下載了openCV並安裝了它。當我試圖運行它:OpenCV - python 3.x和windows - Numpy的哪個版本?
import cv2
我收到錯誤消息:
RuntimeError: module compiled against API version a but this version of numpy is 9
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "C:\Program Files (x86)\JetBrains\PyCharm Community Edition
5.0.3\helpers\pydev\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
ImportError: numpy.core.multiarray failed to import
我想我需要建立虛擬環境,並安裝不同版本numpy的,但我需要什麼numpy的確切版本安裝?
謝謝,我要試試你的解決方案。在我的情況下,簡單地升級到Numpy 1.10(原來這是版本a)工作。 – user1700890