简体   繁体   中英

Why [Errno 13] Permission denied?

So, I made this .py script that basically downloads excel tables from the USDA. 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 . 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. 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. 在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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