问题
Attempting to create a new project in PyCharm Community on Windows 10
Settings for new project in PyCharm
I'm greeted with the error msg:
Cannot run program "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\python.exe"
(in directory "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0"): CreateProcess error=5, Access is denied
The only workarounds I've found on SO so far are:
- Change WindowsApp folder owner to 'everyone'
- Create new 'venv' and put project in there
- Don't use Python from Windows Store
Would it be best to ditch Windows Store Python and just download Python 3.8 for Windows from python.org? I'm new to Python development and don't want to adopt sloppy behavior, thank you!
回答1:
Removing the Windows Store version and whitelisting in Windows Security PyCharm exe and project directories cleared up all launch issues in PyCharm!
回答2:
Use %USERPROFILE%\AppData\Local\Microsoft\WindowsApps\python.exe as Base Interpreter
来源:https://stackoverflow.com/questions/61878709/access-is-denied-to-python-3-8-for-pycharm-on-windows-10