尝试使用 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
我是一名优秀的程序员,十分优秀!