[英]I am getting some error in most recent call last
Traceback (most recent call last): File "C:/Users/HP/PycharmProjects/HelloWorld/app.py", line 24, in <module> wb.save('transactions2.xlsx') File "C:\Users\HP\PycharmProjects\HelloWorld\venv\lib\site-packages\openpyxl\workbook\workbook.py", line 397, in save save_workbook(self, filename) File "C:\Users\HP\PycharmProjects\HelloWorld\venv\lib\site-packages\openpyxl\writer\excel.py", line 292, in save_workbook archive = ZipFile(filename, 'w', ZIP_DEFLATED, allowZip64=True) File "C:\Users\HP\AppData\Local\Programs\Python\Python37-32\lib\zipfile.py", line 1204, in __init__ self.fp = io.open(file, filemode) PermissionError: [Errno 13] Permission denied: 'transactions2.xlsx'
PermissionError: [Errno 13] Permission denied: 'transactions2.xlsx'
You most likely have this file transactions2.xlsx
still open in Excel.您很可能仍然在 Excel 中打开此文件transactions2.xlsx
。 Otherwise you have a process running, that still uses that file.否则你有一个进程正在运行,它仍然使用那个文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.