PyQt5-Download-Manager icon indicating copy to clipboard operation
PyQt5-Download-Manager copied to clipboard

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

Open sudhanshujain2490 opened this issue 5 years ago • 7 comments

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

sudhanshujain2490 avatar Apr 10 '20 17:04 sudhanshujain2490

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 avatar Apr 20 '20 15:04 kshitijzutshi

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.

kshitijzutshi avatar Apr 20 '20 15:04 kshitijzutshi

Untitled

sudhanshujain2490 avatar Apr 20 '20 16:04 sudhanshujain2490

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.

sudhanshujain2490 avatar Apr 20 '20 16:04 sudhanshujain2490

pip -V in cmd what do u get?

kshitijzutshi avatar Apr 22 '20 17:04 kshitijzutshi

cmdline

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

kshitijzutshi avatar Apr 22 '20 17:04 kshitijzutshi

You Will Need Visual Studio

Harshil783 avatar Aug 23 '20 17:08 Harshil783