win64位下安装python的image支持

    由于工做须要,我须要在windows下使用python 的PIL包,刚开始是直接经过官网下载的基于python2.7的PIL包,装完后,在IDLE下正常导入import Image,而后使用Image.open, Image.show就会报The _imaging C module is not installed??的错误,经搜索查阅资料,得出问题是我安装的PIL是32位的,因此须要64位的PIL.python

    通过网上搜索,找到了64位的PIL安装包资源: http://www.lfd.uci.edu/~gohlke/pythonlibs/windows

    里面的pillowpython2.7

    下载对应的whl安装包,安装完后,这里由于是whl的安装包,因此咱们须要安装工具wheel,
工具

    能够经过pip install wheel 安装wheel工具,spa

    而后再经过命令wheel install Pillow-2.7.0-cp27-none-win-amd64.whl 安装刚刚下载的whl安装包。
ip

    若是提示以前有安装,那就去对应目录删除以前安装的pil相关的文件。
ci

    

    安装成功后,能够在IDLE下面去试试了, 资源

    这里要注意,导入Image方法为:from PIL import Image.
get

相关文章
相关标签/搜索