Shivika Patel
Shivika Patel

Reputation: 233

Getting ModuleNotFoundError: No module named 'PythonMagick' in Python

I am trying to import PythonMagick but not able to import this module. Could you please help me how to install it and use it in my code?

I tried several methods-

python -m pip install PythonMagic
python -m pip install PythonMagic --user

I downloaded the Imagemagic and ghostscript and given their path in environment variable. But didn't get any solution.

Upvotes: 2

Views: 5399

Answers (2)

Hagbard
Hagbard

Reputation: 3680

Please note that PythonMagick is a boost.python library that requires Python 2.2. Unfortunately, it won't work with Python3 and newer. Most likely, it also won't work with Python 2.7.

Upvotes: 0

conjectures
conjectures

Reputation: 31

Try downloading whl file from https://www.lfd.uci.edu/~gohlke/pythonlibs/#pythonmagick then install with python -m pip install <whl file>

Upvotes: 1

Related Questions