我想使用python包魔杖并安装它
pip install Wand
但是当我运行脚本时出现错误
ImportError: MagickWand 未找到共享库。您可能还没有安装 ImageMagick 库。尝试安装:brew install freetype imagemagick
所以我按照指示
$ brew install freetype imagemagick
Warning: freetype 2.8.1 is already installed
Warning: imagemagick 7.0.7-10 is already installed, it's just not linked.
You can use `brew link imagemagick` to link this version.
并再次按照指示
$ brew link imagemagick
Linking /usr/local/Cellar/imagemagick/7.0.7-10...
Error: Could not symlink etc/ImageMagick-7/coder.xml
/usr/local/etc/ImageMagick-7 is not writable.
有人知道这是怎么回事吗?我从未见过这样的问题,谷歌似乎确实显示了任何有用的结果......
编辑:这是我尝试删除软件包并重新安装时得到的
$ brew install ImageMagick --with-freetype
Warning: imagemagick: this formula has no --with-freetype option so it will be ignored!
==> Downloading https://homebrew.bintray.com/bottles/imagemagick-7.0.7-10.high_sierra.bottle.tar.gz
Already downloaded: /Users/xflorian/Library/Caches/Homebrew/imagemagick-7.0.7-10.high_sierra.bottle.tar.gz
==> Pouring imagemagick-7.0.7-10.high_sierra.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink etc/ImageMagick-7/coder.xml
/usr/local/etc/ImageMagick-7 is not writable.
You can try again using:
brew link imagemagick
==> Summary
/usr/local/Cellar/imagemagick/7.0.7-10: 1,523 files, 23.1MB
$ brew link imagemagick
Linking /usr/local/Cellar/imagemagick/7.0.7-10...
Error: Could not symlink etc/ImageMagick-7/coder.xml
/usr/local/etc/ImageMagick-7 is not writable.