【Python问题解决】关于解决python3.x没法使用PIL库的解决方法

由于PIL库目前只更新到python2.x,故python3.x直接安装PIL库会找不到版本。可是python3.x有一个新的库,能够提供和PIL差很少的功能,也就是pillow库。python

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

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

python -m pip install Pillow

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

参考网站

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