'Why am I receiving an "unable to create process" error?

I am new to coding in Python, and have hit an error I cannot figure out how to solve. The project I have been working on in Pycharm was functioning properly all week, and suddenly when I ran it for the first time this morning, I got the following error:

Unable to create process using 'C:\Users\david\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\python.exe C:/Users/david/OneDrive/Desktop/pythonProject/main.py'

See Error

I am unsure how to fix this, so I tried to create a new project as part of troubleshooting and received the following error:

Failed to create virtual environment:

Project Creation

Failed to Create Virtual Environment

How do I resolve this? I think its something to do with how my files are set up, however, I did not change anything between a successful run and receiving this error.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source