【发布时间】: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