无法在anaconda python 3.6中从PIL导入映像执行
我无法执行以下命令无法在anaconda python 3.6中从PIL导入映像执行,python,dll,anaconda,python-imaging-library,Python,Dll,Anaconda,Python Imaging Library,我无法执行以下命令 from PIL import Image 它给我的答复如下: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "...\Anaconda3\lib\site-packages\PIL\Image.py", line 56, in < module> from . import _imaging as core Impo
from PIL import Image
它给我的答复如下:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "...\Anaconda3\lib\site-packages\PIL\Image.py", line 56, in <
module>
from . import _imaging as core
ImportError: DLL load failed: The specified module could not be found.
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“…\Anaconda3\lib\site packages\PIL\Image.py”,第56行,在<
模块>
从…起导入图像作为核心
ImportError:DLL加载失败:找不到指定的模块。
当前使用anaconda上安装的PIL
版本4.2.1
。如何解决此问题?首先,您可以尝试:
conda update --all
如果没有帮助,此解决方案适用于许多人:
conda uninstall pillow
pip install pillow
来源:尝试解决方案后。我在()中找到了
ImportError回溯(最近一次调用上次)从PIL导入映像ImportError:无法导入名称“Image”
@abhi1610,到目前为止您尝试了什么?我尝试了conda update--all;康达枕头;pip安装枕头
。最后一个命令给出了已经满足的要求:c:\users\abhi\anaconda3\lib\site pack ages(5.1.0)
。现在它向我展示了importorror:U图像扩展是为另一个版本的Pillow或PIL:Core版本:5.1.0 Pillow版本:4.2.1尝试pip install-U numpy
和pip install-U Pillow
构建的。如果没有帮助,请尝试以下操作:pip uninstall Pillow
和pip install Pillow==4.2.1
。