1

我尝试在 Windows 命令提示符下安装包

为什么不会安装?我以为我遵循了正确的程序

4

1 回答 1

0

只需对 .whl 文件的完整路径使用边界引号。

pip install "C:\...full path with spaces\pywin32-...-win_amd64 (1).whl"

当然要确保pip install wheels首先运行。

另一种方法是使用easy_install(无需手动下载安装程序):

easy_install.exe https://github.com/jmdaweb/TWBlue_deps_windows/raw/master/x64/pywin32-220.win-amd64-py2.7.exe

但是如果你有计划使用第二种方式可能会导致 py2exe 出现问题。也许pip install pypiwin32对您来说没问题(它将安装 pyWin32 build 219,在大多数情况下应该可以正常工作)。

于 2016-09-26T14:58:59.970 回答