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

时间:2021-11-30 00:44:08

因为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://*.com/questions/8863917/importerror-no-module-named-pil