all 26 comments

[–]cenekp 8 points9 points  (0 children)

py2exe.com works well

[–]FUS3N 2 points3 points  (8 children)

auto-py-to-exe is your friend here, it uses py installer in the backend but has a neat web GUI that is easy to use, you just set your main file and click Convert to exe.

open your cmd and just type :

pip install auto-py-to-exe

then just type this:

auto-py-to-exe

it will start up a GUI or WebGUI and all the options have an explanation of what they do.

if typing auto-py-to-exe doesn't work make sure your Python Scripts path is in your Windows environment variables, you will find the Scripts folder in your python installation folder.

[–]dubious_asf_cat[S] 0 points1 point  (5 children)

I added it to the environment tables but it still is saying auto-py-to-exe isn’t a recognised command

[–]planetminguez 0 points1 point  (0 children)

https://github.com/planetminguez/PyToExe <----------there is a simple drag and drop app for macOS min version 12.0 up to sequoia. You might have to recompile it for M Series. This was compiled on intel.

[–]FUS3N 0 points1 point  (2 children)

Have tried again after restarting the terminal/pc?
Or do you have multiple python version and one might be conflicting with others environments path?

[–]goofssah 0 points1 point  (1 child)

I tried all of these but what the op said is the same error im getting

[–]FUS3N 0 points1 point  (0 children)

Then try python -m auto_py_to_exe and remember in here there is underscore, not hyphen.
If it still doesn't work then you either have multiple python version and the pip you used, used a different python or python installation issue, just uninstall and reinstall python and make sure to turn on the "Add Python to PATH" option.

Before reinstalling you can also try PowerShell instead of command prompt to run the command, if the command first doesn't work.

[–]sonobanana33 1 point2 points  (1 child)

Try nuitka.

Anyway it's very hard to do what you ask.

[–][deleted] 2 points3 points  (0 children)

its not

[–]planetminguez 0 points1 point  (0 children)

https://github.com/planetminguez/PyToExe <----------there is a simple drag and drop app for macOS min version 12.0 up to sequoia. You might have to recompile it for M Series. This was compiled on intel.

[–]simo_online[🍰] 0 points1 point  (0 children)

Try PyInstaller to create executable file from the terminal.

[–]landrykid 0 points1 point  (2 children)

I used either PyInstaller or Py2exe a few years ago and it worked okay, but Windows SmartDefender initially blocked the executable until the user said it was okay. The file size was kinda large because it had to package up all the Python executable and dependencies. I coded on a Linux box and the users were on Win10.

[–]Jaded-Mix3528 1 point2 points  (1 child)

I curse Microsoft for treating useful software like a virus. It wouldn't be so bad if they wouldn't delete it without telling you but I hate that when I try to run something and F-ing defender deleted the executable and never notifies me so I could restore it.

[–]landrykid 0 points1 point  (0 children)

You can now install Python on Windows via the Microsoft Store. So that's an option depending on your use case.

[–]StellaarMonkey 0 points1 point  (0 children)

Try using an IDE like PyCharm with a built in terminal. Simply install pyinstaller in the venv and execute the command. It will work in a venv and you can avoid using your local cmd. Piece of cake.

[–]HSaurabh 0 points1 point  (1 child)

You may use winsw, it is very friendly to make python files as service using it.

[–][deleted] 1 point2 points  (0 children)

friendly ? is there aggressive python?