Installing PythonMagick on OS X
brew install boost
- will take a lot of time and make your Mac hotbrew install --with-magick-plus-plus imagemagick
cd <path_to_PythonMagick_source>
./configure --with-boost=<path_to_boost_root>
make
make install
python -c "import PythonMagick"
If PythonMagick build fails saying that it couldn't find -lboost_python
navigate to <path_to_boost_root>/lib/
, ln -s libboost_python-mt.dylib libboost_python.dylib
and run make again.
Tested on 10.6.8 with Python 2.6.7 (custom build). Should work with Lion running stock 2.7.
NOTE: Looks like I was too quick to call it done. The module imports but raises exceptions when used. Bummer.
This version (PythonMagick-0.9.18) seems to fix the above errors:
I can do:
on 10.13.6 (High Sierra), Python 2.7.15, resulting in output below. However, if I do
python -c "import PythonMagick"
, I get:Output for
make install
: