简体   繁体   English

小牛队的pyQt4与python 3

[英]PyQt4 on Mavericks with python 3

I have made a python application in Xubuntu that I am currently trying to run on Mavericks. 我在Xubuntu中创建了一个python应用程序,我目前正在尝试在Mavericks上运行。 The project uses PyQt4 for it's GUI portion. 该项目使用PyQt4作为GUI部分。 I am currently trying to install PyQt4 on Mavericks and get the following error when I run brew install pyqt : 我正在尝试在Mavericks上安装PyQt4并在运行brew install pyqt时出现以下错误:

Error: Qt currently requires --HEAD on Mavericks

I have looked around for a solution to this or what this evens means. 我已经四处寻找解决方案或者这个平均值的意义。 I have never seen this error before. 我以前从未见过这个错误。 So my next option was to try and install manually instead. 所以我的下一个选择是尝试手动安装。 I downloaded the project, went to the directory, and ran sudo python3 configure.py but this does not install either and I get this error: 我下载了项目,转到目录,并运行sudo python3 configure.py但是这也没有安装,我收到此错误:

Error: Make sure you have a working Qt qmake on your PATH or use the -q
argument to explicitly specify a working Qt qmake.

Is there a way to get PyQt on Mavericks to run properly so I can run my application? 有没有办法让MaQicks上的PyQt正常运行所以我可以运行我的应用程序?

After a lot of blood, sweat and tears I have put together a full complete list of installing pyqt on mavericks using python 3: 经过大量的血,汗和泪,我已经整理了一个完整的列表,使用python 3在小牛上安装pyqt:

brew install python3
brew install qt
brew install sip --with-python3
brew install pyqt --with-python3

Add this to your .bash_profile: 将其添加到.bash_profile:

PYTHONPATH=/usr/local/lib/python3.3/site-packages:$PYTHONPATH

Restart your computer. 重启你的电脑。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM