Ask Your Question

dullarobin's profile - activity

2019-11-05 02:24:20 -0500 received badge  Famous Question (source)
2019-11-05 02:24:20 -0500 received badge  Notable Question (source)
2019-11-05 02:24:20 -0500 received badge  Popular Question (source)
2019-06-17 05:48:29 -0500 answered a question AttributeError: module 'openpyxl' has no attribute 'load_workbook'

thanks, @drsgao. After uninstalling and reinstall the openpyxl. It's working fine.

2019-06-14 07:15:51 -0500 received badge  Editor (source)
2019-06-14 07:14:40 -0500 asked a question AttributeError: module 'openpyxl' has no attribute 'load_workbook'

I'm a beginner in Python. After installing openpyxl 2.6.2 module using below command in pycharm terminal

pip install openpyxl.

=============CODE========================

from openpyxl import load_workbook

wb = load_workbook('transactions.xlsx')

====================END=======================

ERROR i'm facing

from openpyxl import load_workbook

File "C:\Users\robin.rana\PycharmProjects\HelloWorld\openpyxl.py", line 1, in <module>

from openpyxl import load_workbook

ImportError: cannot import name 'load_workbook' from 'openpyxl'

(C:\Users\robin.rana\PycharmProjects\HelloWorld\openpyxl.py)