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

前端 未结 3 487
我在风中等你
我在风中等你 2020-12-20 00:41

I am having trouble using openpyxl scripts in Komodo edit 9 and python 3.4 on Windows 7. I copied some openpyxl code to learn, but it won\'t execute from Komodo. I receive a

相关标签:
3条回答
  • 2020-12-20 01:15

    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.

    0 讨论(0)
  • 2020-12-20 01:20

    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)
    
    0 讨论(0)
  • 2020-12-20 01:21

    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.

    0 讨论(0)
提交回复
热议问题