我已经安装了Imagemagick和魔杖,但是在尝试启动django服务器时收到此错误消息:
ImportError: MagickWand shared library not found.
You probably had not installed ImageMagick library.
Try to install:
brew install freetype imagemagick
所以我执行brew install freetype imagemagick
,然后它响应:
Warning: freetype 2.9.1 is already installed and up-to-date
To reinstall 2.9.1, run `brew reinstall freetype`
Warning: imagemagick 7.0.8-2 is already installed and up-to-date
To reinstall 7.0.8-2, run `brew reinstall imagemagick`
所以我执行brew reinstall imagemagick
,然后它返回原始错误:
ImportError: MagickWand shared library not found.
You probably had not installed ImageMagick library.
Try to install:
brew install freetype imagemagick
这个循环还在继续。知道问题是什么吗?
这个github问题帮助我解决了 https://github.com/HazyResearch/pdftotree/issues/50#issuecomment-493386622 的问题 我已经安装了该库,但不知何故它没有正确链接。所以我尝试了上面链接中提供的步骤,它开始工作。
同样的问题,你会在StackOverflow上找到我详细回答的问题,请检查那里的答案: 导入错误:找不到MagickWand共享库[窗口]
您需要在Jupyter中安装imagemagick,然后在Windows上下载并安装.exe ImageMagick可执行文件。