我已经安装了PythonMagick模块但是当我尝试执行导入它的python文件时出现以下错误:
File "process_images.py", line 5, in <module>
import PythonMagick
File "/usr/local/lib/python2.7/site-packages/PythonMagick/__init__.py", line 1, in <module>
import _PythonMagick
ImportError: dlopen(/usr/local/lib/python2.7/site-packages/PythonMagick/_PythonMagick.so, 2): Symbol not found: __ZN6Magick8Geometry4yOffEl
Referenced from: /usr/local/lib/python2.7/site-packages/PythonMagick/_PythonMagick.so
Expected in: flat namespace
in /usr/local/lib/python2.7/site-packages/PythonMagick/_PythonMagick.so
我不确定我可以从这里采取哪些步骤进行故障排除。
使用MacOS Sierra(10.12.5),Python 2.7.10
如果有帮助,我使用以下说明安装PythonMagick:https://gist.github.com/tomekwojcik/2778301#gistcomment-1614534