Python 3 环境安装直接 pip 安装
pip install --user pywin32
Python 2 官方已经不再更新,需要自己下载 whl 手动安装。下载路径
https://pypi.org/simple/pywin32/
选择 pywin32-228-cp27-cp27m-win_amd64.whl 下载后安装
pip install pywin32-228-cp27-cp27m-win_amd64.whl
python pywin32_postinstall.py -install
pywin32_postinstall.py 文件一般在 pip 文件同个目录。