Reputation: 699
I have problem with magickwand and python and Mac OX X.
When I'm importing it I get the error:
ImportError: MagickWand shared library not found. You probably had not
installed ImageMagick library. Try to install: brew install imagemagick
brew install imagemagick Warning: imagemagick-6.8.9-1 already installed
Upvotes: 13
Views: 12280
Reputation: 1225
To get Wand working with imagemagick 7:
brew install imagemagick
echo 'export MAGICK_HOME=/opt/homebrew/opt/imagemagick/' >> ~/.zshrc
echo 'export PATH="/opt/homebrew/opt/imagemagick/bin:$PATH"' >> ~/.zshrc
Upvotes: 14
Reputation: 1313
Based on Gowtham's & jrjc's answers, here's how I got the Wand python package to work using homebrew:
brew install imagemagick@6
echo 'export MAGICK_HOME=/usr/local/opt/imagemagick@6/' >> ~/.bash_profile
There's a few things to note here:
Upvotes: 2
Reputation: 752
brew uninstall --force imagemagick
brew install imagemagick@6
echo 'export PATH="/usr/local/opt/imagemagick@6/bin:$PATH"' >> ~/.bash_profile
brew link imagemagick@6 --force
Upvotes: 10
Reputation: 21883
So, the actual problem is :
If your Python in not installed using MacPorts, you have to export MAGICK_HOME path as well. Because Python that is not installed using MacPorts doesn’t look up /opt/local, the default path prefix of MacPorts packages.
And the solution they provide is :
$ export MAGICK_HOME=/opt/local
Upvotes: 4