windows环境下,pip install win32api报错,说了一堆,最后几行

ModuleNotFoundError: No module named 'win32.distutils.command' ------------------------------------------------------ ERROR: Command errored out with exit status 1: 'c:\users\sidney\appdata\local\programs\python\python37-32\python.exe' 'c:\users\sidney\appdata\local\programs\python\python37-32\lib\site-packages\pip_vendor\pep517_in_process.py' get_requires_for_build_wheel 'C:\Users\sidney\AppData\Local\Temp\tmpaaztly5i' Check the logs for full command output.

将命令改为

pip install pypiwin32