Код:
import qrcode
value = input("Value: ")
foto = qrcode.make(value)
foto.save('qrcode.png')
Ошибка?
Traceback (most recent call last):
File "D:\sqlite3\Nede\lib\site-packages\qrcode\image\pil.py", line 5, in <module>
from PIL import Image, ImageDraw
ModuleNotFoundError: No module named 'PIL'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Nede\QrCode\Prospa.py", line 4, in <module>
foto = qrcode.make(value)
File "D:\sqlite3\Nede\lib\site-packages\qrcode\main.py", line 13, in make
return qr.make_image()
File "D:\sqlite3\Nede\lib\site-packages\qrcode\main.py", line 296, in make_image
from qrcode.image.pil import PilImage
File "D:\sqlite3\Nede\lib\site-packages\qrcode\image\pil.py", line 7, in <module>
import Image
ModuleNotFoundError: No module named 'Image'