Pythondeveloper6 / PyQt5-Download-Manager

39 stars 34 forks source link

How to convert this file to executable (.exe) file #1

Open sudhanshujain2490 opened 4 years ago

sudhanshujain2490 commented 4 years ago

Sir, I have made this project by seeing your course on Udemy, but now I have to make it portable file i.e. .exe file by which we can install it on different computers. Please show me how to convert this project to .exe so that I test it in a different machines. Thank you

kshitijzutshi commented 4 years ago

Hi sudhanshujain2490,

So what you can do is this -- 5 STEP PROCESS:

  1. Open CMD and do pip install pyinstaller
  2. Go to the directory where u have your python files and main file and open CMD in that dir
  3. Then type the following -> pyinstaller --onefile -w <name_of_file.py>
  4. Now this process creates new folders and files like - dist, build folders and a file like name_of_file.spec
  5. Now delete the build folder no need of that, and also the name_of_file.spec file.

The folder of use is dist, this has your executable. 😄

If you do this you should have your executable! 💯 👍

kshitijzutshi commented 4 years ago

Sir, I have made this project by seeing your course on Udemy, but now I have to make it portable file i.e. .exe file by which we can install it on different computers. Please show me how to convert this project to .exe so that I test it in a different machines. Thank you

I hope my response resolves your issue.

sudhanshujain2490 commented 4 years ago

Untitled

sudhanshujain2490 commented 4 years ago

When I run the command i.e. pip install pyinstaller, it shows this error. Then I try to install pip install PEP517 and again try but got the same result. Please help me out.

kshitijzutshi commented 4 years ago

pip -V in cmd what do u get?

kshitijzutshi commented 4 years ago

cmdline

I did what I mentioned before, no issues what so ever for me. I think u may have messed up pip/python installation

Harshil783 commented 4 years ago

You Will Need Visual Studio