”;
Installing XlsxWriter using PIP
The easiest and recommended method of installing XlsxWriter is to use 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 tarball 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/ $ python setup.py install
Cloning from GitHub
You may also clone the GitHub repository and install from it.
$ git clone https://github.com/jmcnamara/XlsxWriter.git $ cd XlsxWriter $ python setup.py install
To confirm that XlsxWriter is installed properly, check its version from the Python prompt −
>>> import xlsxwriter >>> xlsxwriter.__version__ ''3.0.2''
Advertisements
”;