I recently downloaded the
xlsxwriter version 0.6.4 and installed it on my computer. It correctly added it to my
C:\Python27\Lib\site-packages\xlsxwriter folder, however when I try to import it I get the error
ImportError: No module named xlsxwriter. The traceback is File
However if I try to import numpy (I can't remember what numby is, however it is located in the same site-packages folder
C:\Python27\Lib\site-packages\numpy) it has no problem.
Any idea of what could be causing this issue?
Thanks for the help.
This question is tagged with
~ Asked on 2014-12-09 17:29:50
Even if it looks like the module is installed, as far as Python is concerned it isn't since it throws that exception.
Try installing the module again using one of the installation methods shown in the XlsxWriter docs and look out for any installation errors.
If there are none then run a sample program like the following:
import xlsxwriter workbook = xlsxwriter.Workbook('hello.xlsx') worksheet = workbook.add_worksheet() worksheet.write('A1', 'Hello world') workbook.close()
~ Answered on 2014-12-09 20:30:39
Here are some easy way to get you up and running with the XlsxWriter module.The first step is to install the XlsxWriter module.The pip installer is the preferred method for installing Python modules from PyPI, the Python Package Index:
sudo pip install xlsxwriter
Windows users can omit sudo at the start of the command.
~ Answered on 2015-12-17 10:41:16