Generate Qr Code In Python

Generate Qr Code In Python

Published on October 28 2021

In this tutorial, you will learn a python program to generate QR code using the qrcode module. We will also learn how to install the qrcode using pip command.

qrcode Module Installation

pip install qrcode[pil]
OR
pip3 install qrcode[pil]

 

Source code

import qrcode
qr = qrcode.make('TheProgrammingPortal')
qr.save('qr.png')
print('QR code is generated.')

Video