简体   繁体   中英

Installing PyQt4 on a virtual environment on mac

I am trying to install PyQt4 on a virtual environment. First I installed SIP as such:

virtualenv --always-copy ve
ve/bin/activate
. ve/bin/activate
cd ~/Downloads
cd sip-4.16.9
python configure.py --incdir=../ve/include/python2.7
make 
make install

then I tried installing PyQt4 as:

cd ~/Downloads/PyQt-mac-gpl-4.11.4 
python configure-ng.py

However, I get an error:

Error: Use the --qmake argument to explicitly specify a working Qt qmake.

You need to install QT on your machine. And then try installing PyQT4. Ensure that QT path is added to your environment PATH or you would need to give the QT path while installing PyQT(as the error in your post mentions).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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