I managed to solve this problem as follows ...
Be careful, make sure you understand the IDE you are using! - Because I did not. I tried to import xlsxwriter using PyCharm and returned this error.
If you have already tried installing pip (sudo pip install xlsxwriter) through the cmd prompt, try using a different IDE, for example Geany - & import xlsxwriter.
I tried this and Jani imported the library perfectly. I opened PyCharm and went to "File> Settings> Project:> Project Interpreter" xlslwriter, although intriguingly I could not import it! I double-clicked xlsxwriter and clicked "Install Package" ... And thatβs it! It worked!
Hope this helps ...
source share