https://www.jb51.net/article/139380.htm
1.更新最新的pip包
C:UsersAdministrator>python -m pip install --upgrade pip Collecting pip Downloading pip-8.1.1-py2.py3-none-any.whl (1.2MB) 100% |████████████████████████████████| 1.2MB 61kB/s Installing collected packages: pip Found existing installation: pip 7.1.2 Uninstalling pip-7.1.2: Successfully uninstalled pip-7.1.2 Successfully installed pip-8.1.1
2.安装XlsxWriter
C:UsersAdministrator>pip install XlsxWriter Collecting XlsxWriter Downloading XlsxWriter-0.8.6-py2.py3-none-any.whl (134kB) 100% |████████████████████████████████| 143kB 26kB/s Installing collected packages: XlsxWriter Successfully installed XlsxWriter-0.8.6
3.另一种安装XlsxWriter方法
C:UsersAdministrator>easy_install XlsxWriter Searching for XlsxWriter Best match: XlsxWriter 0.8.6 Adding XlsxWriter 0.8.6 to easy-install.pth file Using c:python27libsite-packages Processing dependencies for XlsxWriter Finished processing dependencies for XlsxWriter