无法在osx上为python3安装sip

时间:2017-01-04 21:01:10

标签: python-3.x pip

我正在尝试安装sip,以便安装PyQt5。当我尝试使用pip进行安装时,会出现以下错误。

>>>pip3 install sip
Collecting sip
  Could not find a version that satisfies the requirement sip (from versions: )
No matching distribution found for sip

有谁知道我怎么能得到pip才能找到sip包?我也尝试使用brew安装,但我需要安装版本4.19和brew安装4.18。

1 个答案:

答案 0 :(得分:0)

您可以从通常从here下载的Python包索引中找到SIP的下载。这将下载一个wheel文件,可以通过wheel python模块安装。

pip3 install wheel,然后执行python3 -m wheel install <path-to-downloaded-wheel>