Description
I am attempting to run a Python script using a WinPython distribution, both of which are located on OneDrive.
Specifically, I attempted to accomplish this by typing the following into the command prompt: "C:\MyOneDriveFolder\WinpythonFolder\python-3.9.8.amd64\python.exe" "C:\MyOneDriveFolder\MyPythonScript.py"
However, the command prompt gave the error message "Access is denied." There was also a pop-up stating "This app can't run on your PC. To find a version for your PC, check with the software distributor".
I tried several approaches to fix this issue, including:
- Ensuring all files have sufficient permissions ("Allow" for "Read and Execute" and "Modify")
- Running command prompt as administrator
- Setting OneDrive sync settings to "Download all Files"
- Pausing syncing before trying to run the command
However, I still get the same error message. If anyone knows how to fix this please would you advise me? Or if anyone knows for sure that this cannot be done with the current version of WinPython this would also be a great help. And in this case I would like to suggest this as an area for future development.
I appreciate anyone's time and thank you in advance.