PermissionError [errno 13] when running openpyxl python script in Komodo

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-29 12:02:24

This is simply an error from the operating system telling you that you don't have permissions to create a file where you're trying to. You should specify the full path of the file you're trying to create.

I faced the same problem yesterday, but because I dumbly let the workbook open while trying to run the script. Closing it fixed the issue.

By default, your location may be set into C drive which is an OS part.

Just try like this, I also got the same problem`.

  location = "E:\output.xlsx"
  data = []
  writer = pd.ExcelWriter(location)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!