Python3.x No module named 'PIL'怎么解决

时间:2024-10-13 20:04:40

1、 在使用python中遇到下图所示的No module named 'PIL'错误,是因为需要pillow模块,如何安装呢?

Python3.x No module named 'PIL'怎么解决

2、 python3安装模块的话,需要用到pip,

Python3.x No module named 'PIL'怎么解决

3、 首咸犴孜稍先确保电脑已经安装了pip, 在cmd中输入python -m pip --version查看安装pip的版本。安装教程参考经验:

Python3.x No module named 'PIL'怎么解决

4、 或者在命令行中输入:pip -V ,点击回车键

Python3.x No module named 'PIL'怎么解决

5、 命令行中输入: pip install Pillow ,回车键进行查看

Python3.x No module named 'PIL'怎么解决

6、 步骤5后安装成功的效果如图所示

Python3.x No module named 'PIL'怎么解决

7、如果您觉得有用,记得在下方点击投票、点赞、关注、留言,小编会定期奉上更多的惊喜哦,您的支持才是小编继续努力的动力,么么哒。

Python3.x No module named 'PIL'怎么解决
© 手抄报圈