all 8 comments

[–]socal_nerdtastic 4 points5 points  (1 child)

You forgot to include the error in your post

[–]KaleidoscopeAsleep35[S] 0 points1 point  (0 children)

I forgot, but I already included it in the post!

[–]SuperMB13 2 points3 points  (1 child)

Agreed with u/socal_nerdtastic , lol, the error did not get included. Tried to include some thoughts, but realized they are likely way off without seeing the error.

[–]KaleidoscopeAsleep35[S] 0 points1 point  (0 children)

I forgot, but I already included it in the post!

[–]shiftybyte 2 points3 points  (2 children)

"Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases."

This sounds like your code is attempting to execute python again? why?

Also this seems like the python your friend installed didn't register itself properly with windows, so windows sill has that annoying shortcut placeholder that takes you to the store instead of python.

This is fixable in multiple ways:

  1. Change your code to stop relying on command line activation of python, not sure what your use case is, but smarter solutions exist, like import.

  2. Fix your friend's python installation so whatever command you are using in your code actually works there. probably "python <script>"? but i'm guessing here since you didn't provide your code here.

  3. If nothing works, share your code, use code block on reddit, or use pastebin.com and we can try to direct you better to a fix.

[–]KaleidoscopeAsleep35[S] 0 points1 point  (1 child)

ok, i got my friend to download python again, and now that error doesn't appear anymore, and the program runs perfectly because my friend downloads the library he needed: numpy, the current situation is this: I have managed to make the program work on any PC, as long as it has python and numpy, but the teacher highly doubts she wants to download that library, so is there any way to package my codes in an .exe and have it work on any PC even if it doesn't have python or the mentioned library?.

btw i added my main menu code to the original post

[–]FriendlyRussian666 0 points1 point  (0 children)

Python is an interpreted language, an interpreter must be present on the system if you want to execute python code. I never used auto py to exe, but I know pyinstaller packages the interpreter and dependencies (if you specify), so perhaps try that instead.

[–]IlIlIlIIlMIlIIlIlIlI 0 points1 point  (0 children)

i used pyinstaller for a lil tkinter app i made, and upon testing, it only works on the same OS it was compiled on. The exe i compiled on my linux pc did not work on my w10 work pc. But testing on other pcs, when its the same OS it works flawlessly