How to fix Modulenotfounderror : No module named xlsxwriter error in Python ?

How to fix No module named xlsxwriter error in Python

We can fix the 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.


Modulenotfounderror : 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: Using pip to install xlsxwriter –

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

Modulenotfounderror No module named xlsxwriter
Modulenotfounderror No module named xlsxwriter

For Windows-

pip install xlsxwriter

For Linux-

sudo pip install xlsxwriter

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

No module named xlsxwriter
No module named xlsxwriter


Method 2: Using easy_install to install xlsxwriter –

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

easy_install xlsxwriter


Method 3: Using Souce Code to install xlsxwriter –

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.

Meet Abhishek ( Chief Editor) , a data scientist with major expertise in NLP and Text Analytics. He has worked on various projects involving text data and have been able to achieve great results. He is currently manages, where he and his team share knowledge and help others learn more about data science.
Thank you For sharing.We appreciate your support. Don't Forget to LIKE and FOLLOW our SITE to keep UPDATED with Data Science Learner