简体   繁体   English

ImageMagick 和 Wand 在 Anaconda 上的安装问题

[英]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:以下是我的设备和相关软件包的规格:

  • Python 3.7.8 (tags/v3.7.8:4b47a5b6ba, Jun 28 2020, 10:03:53) [MSC v.1916 64 bit (AMD64)] Python 3.7.8(标签/v3.7.8:4b47a5b6ba,2020 年 6 月 28 日,10:03:53)[MSC v.1916 64 位 (AMD64)]
  • 64- bit operating system 64位操作系统
  • Windows 10 Pro Windows 10 Pro
  • Anaconda version 1.7.2 Anaconda 1.7.2版

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!提前致谢!

UD1 UD1

The process steps I used to install the relevant packages are as follows:我用来安装相关包的流程步骤如下:

  1. I downloaded ImageMagick-6.6.9-10-Q16-windows-x64-dll.exe and ran the installation application making sure the Install development headers and libraries for C and C++ was checked.我下载了 ImageMagick-6.6.9-10-Q16-windows-x64-dll.exe 并运行了安装应用程序,确保检查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)我将 MAGICK_HOME 环境变量设置为已安装文件的路径(C:Program Files\Imagemagick-6.6.9.10-Q16)
  2. I then ran pip install wand==0.5.7 in my device cmd prompt然后我在我的设备 cmd 提示符中运行pip install wand==0.5.7
  3. I then ran pip install ghostscript in my device cmd prompt然后我在我的设备 cmd 提示符中运行pip install ghostscript
  4. I used conda list to confirm the installation of the three packages before opening jupyter notebook我在打开jupyter notebook之前用conda conda 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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM