Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/317.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python ImportError:找不到MagickWand共享库。ubuntu_Python_Python 3.x_Imagemagick_Ubuntu 16.04 - Fatal编程技术网

Python ImportError:找不到MagickWand共享库。ubuntu

Python ImportError:找不到MagickWand共享库。ubuntu,python,python-3.x,imagemagick,ubuntu-16.04,Python,Python 3.x,Imagemagick,Ubuntu 16.04,我正在使用PythonWand.Image以以下方式导入图像 from wand.image import Image 在我的本地机器上,我安装了imagemagick,它工作正常。但在我的生产服务器上,当我试图运行这段代码时,我遇到了以下错误 我也尝试过在生产服务器上安装imagemagick,在运行apt-qq-list imagemagick时,我得到以下输出 imagemagick/xenial更新,xenial security,现在8:6.8.9.9-7ubuntu5.13 amd

我正在使用PythonWand.Image以以下方式导入图像

from wand.image import Image
在我的本地机器上,我安装了imagemagick,它工作正常。但在我的生产服务器上,当我试图运行这段代码时,我遇到了以下错误

我也尝试过在生产服务器上安装imagemagick,在运行
apt-qq-list imagemagick
时,我得到以下输出

imagemagick/xenial更新,xenial security,现在8:6.8.9.9-7ubuntu5.13 amd64[已安装]


我已经在生产服务器上安装了Ubuntu 16.04.4。

您是否尝试安装以下内容:
apt get install libmagickwand dev
是的,也尝试过,但没有Luckar您在生产中使用docker?是的,我在生产中使用docker容器。这就是问题所在,我也遇到了同样的问题。我们把它改成了ubuntu docker,然后它就成功了。