Skip to content Skip to sidebar Skip to footer

Attribute Error No Attribute As Load_workbook

this is my code import openpyxl wb = openpyxl.load_workbook('alex.xlsx') ws = wb['Sheet2'] no_row = ws.max_rows for x in range(0,(no_row+1)): cell = ws.cell(x,1) correc

Solution 1:

You named your file C:\Users\priyatosh\Downloadspython\openpyxl.py, so when you do import openpyxl as xl, Python will try to recursively import that same file, not the openpyxl module. You should rename your file.


Post a Comment for "Attribute Error No Attribute As Load_workbook"