我已经安装了Imagemagick和wand,但是在尝试启动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
,此循环继续。知道是什么问题吗?
答案 0 :(得分:0)
这个github问题帮助我解决了问题https://github.com/HazyResearch/pdftotree/issues/50#issuecomment-493386622 我已经安装了该库,但是以某种方式无法正确链接。所以我尝试了上面链接中提供的步骤,它开始起作用。
答案 1 :(得分:0)
您会在 StackOverflow 上找到我已经详细回答的相同问题,请查看那里的答案:ImportError: MagickWand shared library not found[windows]
您需要在 Jupyter 中安装 imagemagick,然后在 Windows 上为 ImageMagick 下载并安装 .exe 可执行文件。