Hey all, I successfully deployed one actor yesterday and followed all the same steps to deploy my next actor but now the Apify CLI can not detect python anymore when I run "apify run" which is crazy because it has to detect it in order to build the actor in the first place,
This is output in my terminal which shows that it can't detect python but that I can find the version no problem:
PS C:\Users\Ken\New PATH py\testing-it> apify run --purge Info: All default local stores were purged. Error: No Python detected! Please install Python 3.9 or higher to be able to run Python Actors locally. PS C:\Users\Ken\New PATH py\testing-it> python --version Python 3.13.2
This is from my CMD: C:\Users\Ken>where python C:\Program Files\Python313\python.exe
I have added the correct PATHs in my environment variables, uninstalled and reinstalled python, started new apify builds, restarted my computer, and deactivated the Microsoft App Aliases.
The best I can figure is somewhere in the code something is pointing the apify run to somewhere different then C:\Program Files\Python313\python.exe because that is where it is and where it has clearly been found by the apify CLI.
Hey so I just read your response again and the reason that says new PATH is because I was testing whether making python globally accessible to all users would help at all. The folder is the folder that contains the code and is completely unrelated to the actual Environment Variables Path.
I have used folders that are a single word too like "testing" for example and had the same outcome.