I want to run the exe file with command line arguments in Mac terminal
p1.exe -f input.txt
But im getting error -bash: p1: command not found
I have converted python file p1.py into p1.exe using
pyintsaller p1.py --onefile
And running the python file with arguments works
python p1.py -f input.txt
.exeis a Windows PE executable, it won't execute on macOS. No Windows executable will (unless you're using an emulation or virtualization layer). You'll need to package into a macOS.apppackage or build a macOS installer instead.