I want to great qrcode generator by pyqrcode
i tried to create qr-code like png pic, then i tried to create qr like base64 string and then decode it and open.
but in both tries i nave this error:
import pyqrcode
import base64
import png
urr = input("Enter the URL: ")
qrr = pyqrcode.create(urr)
bb64 = qrr.png_as_base64_str()
with open("qrcode.png", "wb") as f:
f.write(base64.b64decode(bb64))
how to install png module(i cant install it via pip3/pip, cos thats not found)
after installing and importing png
New contributor
Евгений is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.