1、在我们使用qrcode的时候,输入qr "Some test"争犸禀淫>test.png时发生错误,显示没有模块名叫 “Image”

2、我们查找原因,显示ModuleNotFoundError: No module named 'PIL'

3、所以我们用命令行安装模块pip install pillow

4、安装完成后,重新输入命令行qr "Some test">test.png,没有出现错误

5、这个过程说明qrcode模块是基于pillow模块的
6、这时我们再导入qrcode模块就可以使用了

7、问题成功解决,喜欢点个赞呗