【问题标题】:Trouble installing sip on osx for python3在 osx 上为 python3 安装 sip 时遇到问题
【发布时间】:2017-01-04 21:01:10
【问题描述】:

我正在尝试安装 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。

【问题讨论】:

  • 你用的是什么版本的 Python?

标签: python-3.x pip


【解决方案1】:

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

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

【讨论】:

    猜你喜欢
    • 2018-03-12
    • 2023-03-26
    • 2012-10-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-02-07
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多