Skip to content Skip to sidebar Skip to footer

Wand And Ghostscript Issue On Pycharm

So I have installed Wand, Ghostscript, ImageMagick. I am trying to convert a PDF to Image. My Code is as following. Code: from wand.image import Image image_pdf = Image(filename='/

Solution 1:

You should look to isolate your Python environment from your system Python (and yes, your Homebrew installation would be considered a system Python installation too) by using virtualenvwrapper.

From what I'm seeing, the Python that your system is using is not the same Python that PyCharm is using. While that can be fixed by going to Settings > Project Interpreter and selecting the right path for your interpreter...

enter image description here

...it would be best to ensure that you install all of the necessary dependencies your project needs in an isolated virtual environment instead.

Solution 2:

The issue was that since PyCharm was not starting through Terminal it was not picking up all the Path Variables and hence was not able to find the required dependencies (I assume GhostScript might be the missing dep here)

So when I started PyCharm from Terminal, it worked.

Post a Comment for "Wand And Ghostscript Issue On Pycharm"