[英]Permission error 13 in Windows 10 for Sublime Text 3
I recently installed SublimeREPL
from PackageControl
and changed the path to python IDE
to its location in Main.sublime-menu
file and also created a new build file as shown in this answer [ https://stackoverflow.com/a/23722631/7773783] .我最近从PackageControl
安装了SublimeREPL
,并将python IDE
的路径更改为它在Main.sublime-menu
文件中的位置,还创建了一个新的构建文件,如此答案所示 [ https://stackoverflow.com/a/23722631/7773783] . But when I create a .py
file and run it like this: Tools --> SublimeREPL --> Python --> Python-RUN current file
, I am getting the following error:但是当我创建一个.py
文件并像这样运行它时: Tools --> SublimeREPL --> Python --> Python-RUN current file
,我收到以下错误:
How can I rectify this problem?我该如何解决这个问题?
An Access Denied
error of 5
on Windows is an indication that you tried to execute a folder, which is not allowed. Windows 上的Access Denied
错误5
表示您尝试执行不允许的文件夹。
Based on your description of how you set this up, my guess would be that when you set up the path to Python, you set it to the location that the Python interpreter is installed inside of.根据您对如何设置的描述,我的猜测是,当您设置 Python 的路径时,您将其设置为安装 Python 解释器的位置。 However, that particular setting is specifying the what to execute, not the where of what's going to get executed (although it can also contain where information as well).但是,该特定设置指定要执行的内容,而不是将要执行的内容的位置(尽管它也可以包含位置信息)。
If this is the case, then modifying that value to be the full path up to and including the Python interpreter should fix the problem;如果是这种情况,那么将该值修改为包括 Python 解释器在内的完整路径应该可以解决问题; the value would be something like C:\SomePath\Python36\bin\python.exe
or similar.该值类似于C:\SomePath\Python36\bin\python.exe
或类似的东西。
just add the correct path for instance:只需添加正确的路径,例如:
C:/Users/Admin/AppData/Local/Programs/Python/Python38/python.exe C:/Users/Admin/AppData/Local/Programs/Python/Python38/python.exe
Helpful thread: https://github.com/wuub/SublimeREPL/issues/529有用的线程: https ://github.com/wuub/SublimeREPL/issues/529
The Access is denied
is a permission error. Access is denied
是权限错误。 Make sure to include the.exe file in the path eg C:/Program Files (x86)/Python38/python.exe
确保在路径中包含 .exe 文件,例如C:/Program Files (x86)/Python38/python.exe
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.