Python XlsxWriter environment setup

Python XlsxWriter Environment Setup

Installing XlsxWriter Using PIP

The easiest and recommended way to install XlsxWriter is using the PIP installer. Use the following command to install XlsxWriter (preferably in a virtual environment).

pip3 install xlsxwriter

Installing from a Tarball

Another option is to install XlsxWriter from its source code, hosted at https://github.com/jmcnamara/XlsxWriter/

Download the latest source code archive and install the library using the following commands:

$ curl -O -L http://github.com/jmcnamara/XlsxWriter/archive/main.tar.gz

$ tar zxvf main.tar.gz
$ cd XlsxWriter-main/
$ setup.py install

$ data-internallinksmanager029f6b8e52c=”1″ href=”https://geek-docs.com/python/python-top-tutorials/1000100_python_index.html” rel=”noopener” target=”_blank” title=”Python Tutorial”>python

Cloning from GitHub

You can also clone the GitHub repository and install from there.

$ git clone https://github.com/jmcnamara/XlsxWriter.git

$ cd XlsxWriter
$python setup.py install

To confirm that XlsxWriter is installed correctly, you can check its version from the Python prompt –

>>> import xlsxwriter
>>> xlsxwriter.__version__
'3.0.2'

Leave a Reply

Your email address will not be published. Required fields are marked *