mirror of
https://github.com/brentvollebregt/auto-py-to-exe.git
synced 2026-04-26 04:05:49 +03:00
[GH-ISSUE #250] Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases. #225
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @xman213 on GitHub (Mar 14, 2022).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/250
I am making a app the is composed of 12 .py files. I convert it to a exe and the main.py file runs just fine. when the program calls for a driffrent py file I get this "Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases."
How would I fix this?
@brentvollebregt commented on GitHub (Mar 15, 2022):
Are you trying to call another script using
python, as in the binary?The python binary may not exist on the host - you need to import scripts and then execute functions within them.
@xman213 commented on GitHub (Mar 15, 2022):
I had something like this to call the file,
import myfile
subprocess.call(["python", "myfile.py"], shell = False)
not sure if thats exactly what I had because im at school but I am 99% sure
thats what I did.
@brentvollebregt commented on GitHub (Mar 17, 2022):
You cannot make those kind of calls when packaging a script like this. You need to import the scripts and call functions from within them.
@xman213 commented on GitHub (Mar 17, 2022):
ok
@perfectans commented on GitHub (Oct 6, 2022):
[Removed as it was not relevant to this specific issue]
@brentvollebregt commented on GitHub (Oct 6, 2022):
@perfectans I ask that you remove your most recent comment here as it is not related to this specific issue. I would rather people see relevant solutions sorry.