728x90
반응형
[ Code ]
import pandas as pd
df = pd.read_excel("test.xlsx")
[ Error message ]
Pandas read_excel error :
ValueError: Your version of xlrd is 2.0.1. In xlrd >= 2.0, only the xls format is supported. Install openpyxl instead.
[ Reason ]
Since xlrd 2.0 and above only supports the xls format and not the xlsx format,
install the openpyxl module to process the xlsx format with read_excel in Pandas.
[ Solution ]
- Install the openpyxl
pip install openpyxl
728x90
반응형
'개발 > Python' 카테고리의 다른 글
| transformers 5.x AttributeError: BertTokenizer has no attribute _convert_token_to_id. Did you mean: 'convert_tokens_to_ids'? (0) | 2026.03.26 |
|---|---|
| Ubuntu 24.04 로또 6/45 랜덤 생성 프로그램 (PyQt5 / pyinstaller) (0) | 2026.03.06 |
| 로또 번호 생성기, 로또 6/45 (0) | 2026.02.05 |
| Anaconda3 Qt Designer execute (0) | 2026.01.07 |
| Lotto 6/45 random generation pyscript version(ver 0.1) (0) | 2025.11.29 |