How to fix No module named xlsxwriter error in Python ?

How to fix No module named xlsxwriter error in Python

We can fix No module named xlsxwriter error by reinstalling the xlsxwriter module. Sometimes this error generates because of incompatibility. In case of incompatibility versioning, We need to remove/ uninstall the xlsxwriter module and reinstall the compatible version of it. In this article, we will explore various methods to fix this error.


No module named xlsxwriter –

Let’s see different ways of installing the xlsxwriter module. The successful installation for xlsxwriter, will automatically fix this error.

Method 1:

Firstly, We will cover the most adapted way. That is pip package manager. Simple we need to run the below command.

For Windows-

pip install xlsxwriter

For Linux-

sudo pip install xlsxwriter

Sudo provides the admin rights in Linux based OS. Also of windows is asking for admin right while using the above command. Then we need to open the cmd as administrator.

No module named xlsxwriter
No module named xlsxwriter


Method 2:

We can also use easy_install package manger in the place of pip as the above section. Please refer the below easy_install statement for fixing the bug.

easy_install xlsxwriter


Method 3:

Here, We will use the source code for installation. We can use git tool with the below commands.

$ git clone
$ cd XlsxWriter
$ python install

If we do want to use the git tool, We can use the only terminal with CURL command. Let’s see how can we do the installation using CURL.

$ curl -O -L
$ tar zxvf master.tar.gz
$ cd XlsxWriter-master/
$ python install

It will use the master branch which contains the most stable code in the repository. CURL will basically download the tar file from the URL. Then it will untar it and change the directory to call the install command.


Conclusion –

No module named xlsxwriter error is very common. We can easily fix this error by following any of the above methods. Still if you are stuck and not able to fix this error, please comment below in the comment box. Data Science Learner Team must help you.

Similar Articles :

modulenotfounderror: no module named ‘transformers’ ( Solved )

Importerror no module named typing : Tricks to Fix

Importerror no module named simple_salesforce : Tricks to Fix



Data Science Learner Team

Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for signup. A Confirmation Email has been sent to your Email Address.

Something went wrong.

Thank you For sharing.We appreciate your support. Don't Forget to LIKE and FOLLOW our SITE to keep UPDATED with Data Science Learner