Reputation: 326
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
Reputation: 176
try this:
with pd.ExcelWriter('file.xlsx') as writer:
df.to_excel(writer, index=False)
Upvotes: 0
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