[Tutor] ImportError: No module named openpyxl.workbook
Pareshkumar Panchal
pcpanchal123 at gmail.com
Thu May 10 20:43:44 EDT 2018
Hi,
I am trying to write the pandas dataframe to excel but it shows following
error:
Error:
from openpyxl.workbook import Workbook
ImportError: No module named openpyxl.workbook
I am using only pandas however it still works fine on one computer having
openpyxl already installed eventhough i am not using openpyxl in the
program while shows above error on other computer where openpyxl is not
installed.
both computers are running on the same python version.
my code below:
import pandas as pd
writer = pd.ExcelWriter('summary.xlsx')
df.to_excel(writer, index=False)
writer.save()
any help appreciated.
Thank you,
Paresh
More information about the Tutor
mailing list