cannot import workbook in openpyxl

前端 未结 2 1435
慢半拍i
慢半拍i 2020-12-06 15:25

I have installed openpyxl in ubuntu.
now I am running the openpyxl with xlsx files.

While importing the module, it gives me the following error.

         


        
2条回答
  •  难免孤独
    2020-12-06 15:40

    I think you want:

    from openpyxl import workbook # not Workbook
    

    Note the capitalization of the name here.

提交回复
热议问题