I got this issue. I have to deploy my Django project from a Mac computer(OSX). But I get this error: No module named win32com Is there a way or alternative library?
This is where I need it: views.py
excel = win32.gencache.EnsureDispatch('Excel.Application')
excel.Visible = True
ex = excel.Workbooks.Open(save_path)
ex_sheet = ex.Worksheets('Finansal Tablolar_formul')
ex_sheet.Columns.AutoFit()
ex_sheet_2 = ex.Worksheets('Finansal Tablolar_formul')
ex_sheet_2.Columns.AutoFit()
ex.Save()
ex.Close(True)
excel.Application.Quit()
Basically I need it for autofit(larger) the cells