[英]Installation issues with ImageMagick and Wand on Anaconda
I'm currently on day three of attempting to install ImageMagick and Wand on my laptop to run on either jupyter or spyder in Anaconda.我目前正处于尝试在我的笔记本电脑上安装 ImageMagick 和 Wand 以在 Anaconda 中的 jupyter 或 spyder 上运行的第三天。
First I got the "Shared Libraries not found" error which after uninstalling and re-installing a collaboration of different ImageMagick & Wand versions I got to resolve it.首先,我收到“找不到共享库”错误,在卸载并重新安装不同 ImageMagick 和 Wand 版本的协作后,我必须解决它。 Only to be faced with the "MagickGetImageFeatures not found" error.
只是要面对“MagickGetImageFeatures not found”错误。
This is the test code I'm trying to run in order to test the code: from wand.image import Image as img
这是我试图运行以测试代码的测试代码:
from wand.image import Image as img
Here are the specs of my device and relevant packages:以下是我的设备和相关软件包的规格:
I have tried installing Ghostscript v5.92, and have changed the environment variables for MAGICK_HOME and using a virtual environment.我尝试安装 Ghostscript v5.92,并更改了 MAGICK_HOME 的环境变量并使用了虚拟环境。
Any ideas on how to install ImageMagick and wand?关于如何安装 ImageMagick 和魔杖的任何想法?
Thanks in advance!提前致谢!
The process steps I used to install the relevant packages are as follows:我用来安装相关包的流程步骤如下:
Install development headers and libraries for C and C++
was checked.Install development headers and libraries for C and C++
。 I set the MAGICK_HOME environment variable to the path for the installed file (C:Program Files\Imagemagick-6.6.9.10-Q16)pip install wand==0.5.7
in my device cmd promptpip install wand==0.5.7
pip install ghostscript
in my device cmd promptpip install ghostscript
conda list
to confirm the installation of the three packages before opening jupyter notebookconda list
确认了三个包的安装Install the latest ImageMagick DLL version directly from imagemagick.org (guide for windows) , and point MAGICK_HOME
at the installation location.直接从imagemagick.org (windows 指南)安装最新的 ImageMagick DLL 版本,并在安装位置指向
MAGICK_HOME
。 But first ensure all other version are uninstalled/removed from the system.但首先确保从系统中卸载/删除所有其他版本。 Same for the Wand package via pip.
通过 pip 的魔杖 package 相同。
The MagickGetImageFreatures
method was added about 10 years ago to ImageMagick-7, and not included with ImageMagick-6. MagickGetImageFreatures
方法大约在 10 年前被添加到 ImageMagick-7 中,并且不包含在 ImageMagick-6 中。 Wand is aware of ImageMagick-7 exclusive features, and should only attempt to load them if they are available. Wand 知道 ImageMagick-7 的专有功能,并且应该仅在可用时尝试加载它们。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.