我对magickwand、python和Mac OX X有问题。
当我导入它时,我得到了错误:
ImportError: MagickWand shared library not found. You probably had not
installed ImageMagick library. Try to install: brew install imagemagick
brew install imagemagick Warning: imagemagick-6.8.9-1 already installed发布于 2017-11-23 17:17:52
brew uninstall --force imagemagick
brew install imagemagick@6
echo 'export PATH="/usr/local/opt/imagemagick@6/bin:$PATH"' >> ~/.bash_profile
brew link imagemagick@6 --force发布于 2014-07-17 20:38:55
所以,实际的问题是:
如果您的
不是使用MacPorts安装的,则还必须导出MAGICK_HOME路径。因为不是使用MacPorts安装的Python不会查找/opt/local,所以MacPorts包的默认路径前缀。
from wand doc
他们提供的解决方案是:
$ export MAGICK_HOME=/opt/local
发布于 2018-07-09 14:47:11
基于Gowtham's &jrjc的回答,下面是我如何使用自制软件让Wand python包工作:
brew install imagemagick@6
echo 'export MAGICK_HOME=/usr/local/opt/imagemagick@6/' >> ~/.bash_profile这里有几点需要注意:
在撰写本文时,
https://stackoverflow.com/questions/24803747
复制相似问题