How can i convert my code into an application? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can i convert my code into an application?

I just started learning about programming, i'm still in high school and this is my passion and dream job, anyway I started coding little beginner silly applications such as calculators and stuff, i want to turn my codes into apps but i don't know how since i'm a noob, could someone help me out please? And btw i'm using python.

16th Sep 2020, 2:39 PM
Hadi Shaheen
Hadi Shaheen - avatar
3 Answers
+ 2
Do you want to share it with your friends ? For that you can convert your .py file to .exe file. (For Windows ) Go to CMD pip install pyinstaller If pip is not recognised as an internal or external command, it means your Python Path is not set properly . There are many Youtube Videos explaing this thing properly. Anyways after that , copy the full path of your file.py . Find the file or folder whose path you'd like to copy in File Explorer. Hold down Shift on your keyboard and right-click on it. In the context menu that pops up, select “Copy As Path.” Again go to the CMD pyinstaller --onefile full/path/of/file.py What this does is compresses everything into one file . If you use Modules like turtle and Pygame And do not want the User's CMD to open up, you can type pyinstaller --onefile -w fullpath/file.py It will take some time to finish the process depending on the size of the file and how big is your project. Now, go to the folder where the file.py was Stored.
16th Sep 2020, 4:09 PM
Vishnu
Vishnu - avatar
+ 2
*this is the continuation of the previous answer . I had crossed the word limit 😁 In that folder, you can see a new folder called dist Open ‘dist’ folder above. Here you will get your ‘.exe’ file. I hoped this answer helped you ! And BTW , dont't call yourself a noob . You will slowly learn. Even i am just 13 and I have also made many mistakes which now seem dumb . Even the calculator I made was an achievement for me ......lol
16th Sep 2020, 4:13 PM
Vishnu
Vishnu - avatar
+ 1
Thanks mate appreciate it, that helped a lot. <3
19th Sep 2020, 6:55 AM
Hadi Shaheen
Hadi Shaheen - avatar