'Access is denied' to Python 3.8 for PyCharm on Windows 10

半世苍凉 提交于 2020-07-22 05:21:52

问题


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:

  1. Change WindowsApp folder owner to 'everyone'
  2. Create new 'venv' and put project in there
  3. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!