-
After cloning the project open it up in the Compiler.
-
Press the combination of
Ctrl+j
or open the terminal from the upper "main menu" -> "Terminal" -> "new Terminal". -
First, make sure you have virtualenv installed. If not, install it using command:
pip install virtualenv
-
Create a new virtual environment with the name "virtual-environment" using this command:
virtualenv virtual-environment
-
This will create a new directory named 'virtual-environment' in your current directory, which will contain the virtual environment.
-
Activate the virtual environment by the following command:
-
virtual-environment\Scripts\activate
-
After activating the virtual environment, you should see the name of the environment in your command prompt or terminal, indicating that you are now working within the virtual environment.
-
Now Install the module using the command in the terminal:
pip install qrcode
-
After all the above steps run the file by running command:
python main.py
-
Then enter your URL to which you wanted to generate the QR Code.
-
The ".png" file will be downloaded in the local directory where code is saved.
-
Notifications
You must be signed in to change notification settings - Fork 0
This code takes user input for a URL and generates a QR code using the qrcode library in Python. The code then saves the generated QR code as a PNG image file. A message is displayed to inform the user that the QR code has been generated and saved locally. This code can be useful for generating QR codes for various purposes i.e sharing information.
AnjumShehzad7/QR-Code-Generator-Python
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
This code takes user input for a URL and generates a QR code using the qrcode library in Python. The code then saves the generated QR code as a PNG image file. A message is displayed to inform the user that the QR code has been generated and saved locally. This code can be useful for generating QR codes for various purposes i.e sharing information.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published