python wand.image is not recognized

后端 未结 4 1294
再見小時候
再見小時候 2020-12-31 08:55

I installed Imagemagic (both 32 and 64 bits versions were tried) and then used pip to install wand, I also set the Magick_Home env. variable to imagemagic address but when I

4条回答
  •  北海茫月
    2020-12-31 09:32

    For me on my Mac I had to (found Wand looks for MAGICK_HOME in Wand source):

    export MAGICK_HOME="/usr/local/Cellar/imagemagick@6/6.9.9-31"
    

    That was after installing version 6 of imagemagick. I took a look at the Python source for Wand that was installed after I ran pip3 install Wand. The scripts were looking for imagemagick 6 (I attempted to add 7 into the list of versions it looks for, but got a "wrong version" error).

    brew tap homebrew/versions
    brew install imagemagick@6
    

    Now, imagemagick version 6 is installed and Wand looks in $MAGICK_HOME for the libraries.

提交回复
热议问题