MLa*_*yev 34 python python-imaging-library pillow
我已经开始使用Python中的图像了,我想开始使用PIL(Pillow).为了安装它,我跑了pip install Pillow.安装时,之前未安装PIL.我也试过卸载它并重新安装它,以及使用它pip3 install Pillow.
当我在Python中运行它时,我的第一行是:
File "C:\Program Files\Python36\lib\site-packages\PIL\Image.py", line 56, in <module>
from . import _imaging as core
ImportError: DLL load failed: The specified procedure could not be found.
Run Code Online (Sandbox Code Playgroud)
我检查了目录,文件_imaging.cp36-win_amd64.pyd存在于PIL文件夹下.
如果需要的DLL存在,为什么会发生这种情况?我该如何解决?
小智 41
我在Python 3.6中遇到了这个问题.我通过卸载枕头(4.1.0)然后安装旧版本的枕头(4.0.0)来避免这个问题.它似乎与旧版本运行良好.
小智 23
正如在肖恩的回答中,我不得不卸载(我正在使用Anaconda Python 3.6,BTW)
conda uninstall pillow
Run Code Online (Sandbox Code Playgroud)
我用PIL尝试过,但是没有这样的包.卸载枕头也意味着卸载依赖它的软件包,在我的案例中是"anaconda-navigator"和"scikit-image".我重新安装Pillow 4.0.0之后
conda install pillow=4.0.0
Run Code Online (Sandbox Code Playgroud)
并用它测试
python -c "from PIL import Image"
Run Code Online (Sandbox Code Playgroud)
如果成功,您没有看到错误消息,我重新安装了与Pillow 4.1.0一起卸载的软件包.
conda install anaconda-navigator
conda install scikit-image
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
49369 次 |
| 最近记录: |