【问题标题】:How do install python-qt4 on my vitual environment on mac using pip or brew如何使用 pip 或 brew 在我的 mac 上的虚拟环境中安装 python-qt4
【发布时间】:2017-11-01 03:09:09
【问题描述】:

我想在我的 mac 虚拟环境中安装 python-Qt4 库。我正在运行 python 2.7。推荐使用:

sudo apt-get install python-qt4

对于 mac 和 linux 用户,但这对我来说失败了,因为 mac 没有 apt-get 命令。所以我尝试使用brew install python-qt4,但收到以下错误消息:

Updating Homebrew...
Error: No available formula with the name "python-qt4" 
==> Searching for a previously deleted formula... Error: No previously deleted formula found.
==> Searching for similarly named formulae... Error: No similarly named formulae found.
==> Searching taps... Error: No formulae found in taps

我尝试运行pip install python-qt4,但也收到此错误消息:

Collecting python-qt4   Could not find a version that satisfies the
requirement python-qt4 (from versions: ) No matching distribution found for python-qt4

How can i install PyQT4 for Python 2.7?中的所有解决方案我都试过了

【问题讨论】:

  • @BurhanKhalid 我试过了,但对我没用
  • @BurhanKhalid,感谢您的再次回应,我再次关注了它,尽管我必须从它的安装程序重新安装 python2.7,然后它才能工作

标签: macos python-2.7 pip homebrew


【解决方案1】:

用途:

brew install cartr/qt4/pyq

【讨论】:

    猜你喜欢
    • 2011-04-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-07-04
    • 2019-06-14
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多