简体   繁体   English

为什么[Errno 13]权限被拒绝?

[英]Why [Errno 13] Permission denied?

So, I made this .py script that basically downloads excel tables from the USDA. 因此,我制作了这个.py脚本,该脚本基本上是从USDA下载excel表的。 When I run it manually from the prompt command it works, but when I use Task Scheduler to run it, it gives me the: Errno 13 Permission denied. click the link below 当我从提示命令手动运行它时,它可以工作,但是当我使用任务计划程序运行它时,它给了我: Errno 13 Permission denied. click the link below Errno 13 Permission denied. click the link below . Errno 13 Permission denied. click the link below My question is, how can it run from the prompt command when I do it manually but not work when I use task scheduler? 我的问题是,当我手动执行该命令时如何从提示符命令运行而使用任务计划程序时却无法运行?

在此处输入图片说明

Right click --> Run as administrator 右键单击->以管理员身份运行

Should solve your issue. 应该解决您的问题。

Try to give read and write permissions to your xls file. 尝试赋予您的xls文件读写权限。 https://msdn.microsoft.com/en-us/library/bb727008.aspx https://msdn.microsoft.com/en-us/library/bb727008.aspx

I was having the same problem and this is how I solved it: -Right click on the task -A new window will open up, then at the very bottom of the window check "Run with highest privilege" and this should solve the problem. 我遇到了同样的问题,这就是我的解决方法:-右键单击任务-将打开一个新窗口,然后在窗口的最底部选中“以最高权限运行”,这应该可以解决问题。

Check the image below. 检查下面的图像。 在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM