我意識到嘗試遠程診斷和解決安裝問題(尤其是使用Python)很困難,但我已經耗盡了所有我發現的Web建議。嘗試在OSX上安裝並運行simplecv時發生numpy錯誤
OS:OSX 10.8.5
要點是,我通過安裝自制的一切,我得到相同的錯誤this person on the simplecv site完全錯誤輸出如下。
ImportError: cannot import name add_newdocs
我已經通過從simplecv安裝指南和那些從該網站鏈接,我已經看到了這些問題:How to install SimpleCV on OSX 10.8和Trouble Installing SimpleCV但沒有運氣嘗試他們的解決方案。我試過安裝SciPy的,numpy的各種其他方式等
在simplecv DIST有一個需求文檔,其中列出:
SimpleCV
pygame>=1.9.1
PIL==1.1.7
nose>=1.0.0
ipython>=0.12
numpy>=numpy-2.0.0
那是numpy的2.0?列出了numpy-1.9下面的錯誤。 我只有numpy的-1.8,如果我去source forge爲OSX的最新版本,它是numpy的-1.8.1-cp27-NONE-macosx_10_6_intel.whl
那麼,這個問題我有話,一個numpy版本問題?
(具有諷刺意味的是安裝simplecv似乎是這麼辛苦。感謝您閱讀這一步,如果你這樣做......)
bash-3.2$ echo $PATH
/usr/local/lib:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
bash-3.2$ simplecv
Traceback (most recent call last):
File "/usr/local/bin/simplecv", line 8, in <module>
load_entry_point('SimpleCV==1.3', 'console_scripts', 'simplecv')()
File "build/bdist.macosx-10.8-x86_64/egg/pkg_resources.py", line 353, in load_entry_point
File "build/bdist.macosx-10.8-x86_64/egg/pkg_resources.py", line 2321, in load_entry_point
except ValueError:
File "build/bdist.macosx-10.8-x86_64/egg/pkg_resources.py", line 2048, in load
File "/Library/Python/2.7/site-packages/SimpleCV-1.3-py2.7.egg/SimpleCV/__init__.py", line 3, in <module>
from SimpleCV.base import *
File "/Library/Python/2.7/site-packages/SimpleCV-1.3-py2.7.egg/SimpleCV/base.py", line 22, in <module>
import scipy.ndimage as ndimage
File "/Library/Python/2.7/site-packages/scipy-0.14.0.dev_7cefb25-py2.7-macosx-10.9-intel.egg/scipy/__init__.py", line 70, in <module>
from numpy import show_config as show_numpy_config
File "/Library/Python/2.7/site-packages/numpy-1.9.0.dev_297f54b-py2.7-macosx-10.9-intel.egg/numpy/__init__.py", line 159, in <module>
from . import add_newdocs
ImportError: cannot import name add_newdocs
嘿謝謝 - 我也看到了OSX 10.9的參考,並想知道是否是這樣。去升級我的操作系統,然後重試。 –