关于解决 python3.x 无法使用 PIL 库的解决方法

因为PIL库目前只更新到python2.x,故python3.x直接安装PIL库会找不到版本。但是python3.x有一个新的库,可以提供和PIL差不多的功能,也就是pillow库。

本人使用的是python3.6.6,直接pip安装,仍然无法使用from PIL install Image,网上冲浪一番,找到了解决办法。参考网站在最后。

在commander中输入下面代码安装。

python -m pip install Pillow

成功安装后就跟PIL一样正常使用吧。

参考

[1]https://stackoverflow.com/questions/8863917/importerror-no-module-named-pil

posted @ 2018-09-19 10:13  Yingjing  阅读(2250)  评论(0编辑  收藏  举报