English 中文(简体)
Python XlsxWriter - Environment Setup
  • 时间:2024-12-22

Python XlsxWriter - Environment Setup


Previous Page Next Page  

Instalpng XlsxWriter using PIP

The easiest and recommended method of instalpng XlsxWriter is to use PIP installer. Use the following command to install XlsxWriter (preferably in a virtual environment).


pip3 install xlsxwriter

Instalpng 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 pbrary 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