Search code examples
pythonsublimetext3

Sublime Python Build Not Working [WinError 5] Access is denied


I am trying to build python 3.8.5 onto my sublime so I can compile python files. I have used the following code to insert the build

 "cmd":["C:/Users/*******/AppData/Local/Programs/Python/Python38-32", "-u", "$file"],
 "file_regex": "^[ ]File \"(...?)\", line ([0-9]*)",
 "selector": "source.python"

However, whenever i try to run a python file, this error occurs [WinError 5] Access is denied I do not know why this is occurring. I have installed python 3.8.5.


Solution

  • You're getting an Access Denied error because the first item in cmd is the executable that should be executed by the build system, but in place of an executable you've instead specified the name of a directory instead. You can't execute a directory, so Access is denied.

    The actual Python interpreter is inside of the folder that you've specified here, so adding python.exe to the end of the path you've placed there should solve your problem.