尝试使用 pip
安装适用于 Python 2.7.13 (windows x64) 的 pyad
包。
需求中有 pywin32
包,所以我们得到一个错误:
C:\Windows\system32>pip install pyad
Collecting pyad
Using cached pyad-0.5.16.tar.gz
Requirement already satisfied: setuptools in c:\python27\lib\site-packages (from pyad)
Collecting pywin32 (from pyad)
Could not find a version that satisfies the requirement pywin32 (from pyad) (from versions: )
No matching distribution found for pywin32 (from pyad)
然后我安装了pypiwin32
,它曾经在这种情况下工作:
C:\Windows\system32>pip install pypiwin32
Collecting pypiwin32
Using cached pypiwin32-219-cp27-none-win32.whl
Installing collected packages: pypiwin32
Successfully installed pypiwin32-219
但是在此之后我仍然无法安装 pyad
并出现与上面相同的错误,就像 pypiwin32
从未安装过:
C:\Windows\system32>pip install pyad
Collecting pyad
Using cached pyad-0.5.16.tar.gz
Requirement already satisfied: setuptools in c:\python27\lib\site-packages (from pyad)
Collecting pywin32 (from pyad)
Could not find a version that satisfies the requirement pywin32 (from pyad) (from versions: )
No matching distribution found for pywin32 (from pyad)
文件夹C:\Python27\Lib\site-packages\pywin32_system32
存在,pypiwin32
包似乎已安装。
有什么办法可以解决这个问题吗?
最佳答案
您遇到pywin32
安装问题,这是一个二进制轮。
您可以下载pywin32
的二进制轮here 。您安装它
pip install pywin32-221-cp27-cp27m-win32.whl
如果是您下载的文件
根据您的安装选择正确的版本(Python 版本和 32/64 位 Python 版本)
您可以有详细说明here
关于python - 安装pypiwin32后不满足pywin32要求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44030663/