2014-07-17 29 views

回答

3

那麼,實際的問題是:

If your Python in not installed using MacPorts, you have to export MAGICK_HOME path as well. Because Python that is not installed using MacPorts doesn’t look up /opt/local, the default path prefix of MacPorts packages.

from wand doc

而且他們提供的解決方案是:

$ export MAGICK_HOME=/opt/local

+0

的easy_install沒有這個包。/usr/local/Cellar/imagemagick /usr/local/Library/LinkedKegs/imagemagick /usr/local/opt/imagemagick'它正確嗎?我有imagemagick文件夾: /usr/local/opt/ –

+0

試'的easy_install MagickWand',這是ImageMagick的 – jrjc

+0

的Python版本相同的錯誤: '從wand.image進口圖片 回溯(最近通話最後一個): 文件 「」,1號線,在 文件「 build/bdist.macosx-10.9-x86_64/egg/wand/image.py「,第20行,在 文件」build/bdist.macosx-10.9-x86_64/egg/wand/api.py「,第161行,in ImportError:找不到MagickWand共享庫。 您可能沒有安裝ImageMagick庫。 嘗試安裝: brew install imagemagick' –