Creating an executable file of a python program in windows 10

Asked

Viewed 828 times

1

I am a Backbox Linux user but I need to generate an executable for a program written in Python. I installed Windows 10 Pro on Vmware with Python 2.7 and Python 3.4. I use Pycharm and IDLE IDE. I installed pyinstaller through Pip, but when I try:

pyinstaller -F --clean script.py

I get the following error:"failed to create process" Any ideas? How to resolve? Some other way to create an executable?

  • 2

    Looking at the English OS, it seems that it is a problem with pyinstaller installation. What happens if you run pyinstaller --version? Your file system has directories with spaces in the name?

  • 2

    @hugomg, my OS is in English. I will take the test and inform you!

  • 2

    I was talking about Stackoverflow.com in English, not the hahaha operating system :)

  • @hugomg, hahahah. It was funny! Thank you

  • 1

    >Pip install pyinstall Requirement already satisfied (use --upgrade to upgrade): pyinstall in c: program files python36-32 lib site-Packages

  • pyinstaller --version 'pyinstaller' is not recognized as an Internal or External command, operable program or batch file.

  • The second error message is because the pyinstaller executable is not in your PATH.

  • pyinstaller --version 3.2 should now work!

  • I no longer like Windows very much... Is there any way to generate EXE on Linux?

  • It should give but generating window executable on Linux is always more boring.

  • It generated EXE but did not run on Windows itself: "the program cant start because msvcr100.dll is Missing...

  • Once I had to do this for a college project and I followed the tutorial of this video: https://www.youtube.com/watch?v=GSoOwSqTSrs He explains how to do it so you don’t have conflict with the libraries you use and everything else.

Show 7 more comments

1 answer

-1


The mistake "the program cant start because msvcr100.dll is Missing:" can be solved by installing Microsoft Visual C++.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.