1.安装pip
python -m pip install --upgrade pip
2.安装XlxsWriter
python -m pip install XlsxWriter

pip各命令:
$ python -m pip --help

Usage:
  c:\Users\xxl\AppData\Local\Programs\Python\Python36-32\python.exe -m pip [options]

Commands:
  install                     Install packages.
  download                    Download packages.
  uninstall                   Uninstall packages.
  freeze                      Output installed packages in requirements format.
  list                        List installed packages.
  show                        Show information about installed packages.
  check                       Verify installed packages have compatible dependencies.
  config                      Manage local and global configuration.
  search                      Search PyPI for packages.
  wheel                       Build wheels from your requirements.
  hash                        Compute hashes of package archives.
  completion                  A helper command used for command completion.
  help                        Show help for commands.
10-05 04:43