Guillermo
Guillermo

Reputation: 326

Error : No Module named "xlwt"

When i try to execute my code myfile.py from the terminal in ubuntu, showme this error : No Module named "xlwt", but when execute in Ninja no have problem. python3.3

Upvotes: 0

Views: 7090

Answers (2)

Tim McNaughton
Tim McNaughton

Reputation: 176

try this:

with pd.ExcelWriter('file.xlsx') as writer:
    df.to_excel(writer, index=False)

Upvotes: 0

Robᵩ
Robᵩ

Reputation: 168646

To install the xlwt module in Ubuntu, try:

$ sudo apt-get install python-xlwt

From https://pypi.python.org/pypi/xlwt, it appears that xlwt is not compatible with Python3.

Upvotes: 2

Related Questions