Language: Python 3.8.3 I faced this error when I was importing my xlxs file ModuleNotFoundError: No module named 'xlxswriter'
ModuleNotFoundError: No module named 'xlxswriter'
import xlxswriter import pandas as pd from pandas import DataFrame path = ('mypath.xlxs') xl = pd.ExcelFile(path) print(xl.sheet_names)
How can I fix this?
Instead of typing xlsx, type xlsx like this:
import xlsxwriter import pandas as pd from pandas import DataFrame path = ('mypath.xlsx') xl = pd.ExcelFile(path) print(xl.sheet_names)
It'll work.
2.1m questions
2.1m answers
60 comments
57.0k users