python 问题及解决方法

1.PIL 输入以下命令时,报出如下错误

1 >> from PIL import Image
2 Traceback (most recent call last):
3   File "<ipython-input-12-0f6709e38f49>", line 1, in <module>
4     from PIL import Image
5 
6   File "d:\ProgramData\Anaconda3\lib\site-packages\PIL\Image.py", line 58, in <module>
7     from . import _imaging as core
8 
9 ImportError: DLL load failed: 找不到指定的模块。

解决方法:

  PIL卸载重装,输入如下命令:

卸载:

pip uninstall Pillow

重新安装:

pip install Pillow

  参考博客:https://blog.csdn.net/blueheart20/article/details/80985132

posted @ 2020-01-14 18:42  远里歌声_why  阅读(298)  评论(0编辑  收藏  举报