When I try to run any file in PyCharm, it returns this in a pop-up red window:
Error running 'testing': Cannot run program "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.12_3.12.1264.0_x64__qbz5n2kfra8p0python.exe" (in directory "C:UsersbobbyOneDriveDesktopPythonin60"): CreateProcess error=5, Access is denied
Previously, under a family member’s Microsoft account, I installed both a version of Python 3.11 and the PyCharm IDE 2022.1.4. This worked, and I was able to use it without any error.
Since making my own Microsoft account, I have reinstalled the same Python version and PyCharm under my own Microsoft account. I signed into both my family member’s Microsoft account and this Microsoft account from the same laptop, and I have installed everything to the same laptop as well.
I’m not sure what is causing this error now, since I have both PyCharm and Python installed under this Microsoft account, but is there anything I can do? I don’t want to constantly have to operate PyCharm from a different Microsoft account than where I keep most of my projects.
Samuel Hudson is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.