+ 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.
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.
+ 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
+ 1
Thanks mate appreciate it, that helped a lot. <3