0

I am a new in python. I am using Python 3.6. I have created a little programm with tkinter, matplotlib and fpdf modules. I am trying to make executable file from code to use on other computers without Python. Please, tell me the best way to do this. I used pyinstaller - not done, cx_Freeze - There is I have got some mistakes. Anyway, I need your help, please, ask me for more information.

1
  • "There is I have got some mistakes" - what are these "mistakes"? If you got an error message, please include it in your post. Commented Jun 20, 2019 at 16:56

1 Answer 1

2

There is a module PyInstaller which converts .py file into .exe file. First,go to command prompt and type:

pip install pyinstaller

Now type cd command :

cd Your file.py location

At last,type the pyinstaller command:

pyinstaller --onefile yourfile.py

But,your python must be stored in the folder as it will create some new folders in it. Now,take your .exe file out of dist folder and keep where your python file is there.

That's it!

You have created executable file!

For References,

Link:
https://medium.com/dreamcatcher-its-blog/making-an-stand-alone-executable-from-a-python-script-using-pyinstaller-d1df9170e263

PS. First check if there is any error and then make exe. I think you have add something which is dependent to your exe.

Take it out of dist folder and keep beside your python file and check.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.