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:ProgramDataAnaconda3libsite-packagesPILImage.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

原文地址:https://www.cnblogs.com/haoyul/p/12193543.html