Ошибка: убедитесь, что у вас есть рабочий sip в PATH или используйте аргумент --sip, чтобы явно указать рабочий sip

Я хочу установить PyQt5, как указано в официальной документации .

Вот вывод команды, которую они просили выполнить:

begueradj@begueradj-hacker:~/Bureau/PyQt-gpl-5.4.1# python configure.py 
Querying qmake about your Qt installation...
Determining the details of your Qt installation...
This is the GPL version of PyQt 5.4.1 (licensed under the GNU General Public
License) for Python 2.7.6 on linux2.

Type 'L' to view the license.
Type 'yes' to accept the terms of the license.
Type 'no' to decline the terms of the license.

Do you accept the terms of the license? yes
Found the license file pyqt-gpl.sip.
Error: Make sure you have a working sip on your PATH or use the --sip argument
to explicitly specify a working sip.

Как это исправить?

Обратите внимание, что я правильно установил SIP:

begueradj@begueradj:~/Bureau/sip-4.16.7# python configure.py 
This is SIP 4.16.7 for Python 2.7.6 on linux2.
The SIP code generator will be installed in /usr/bin.
The sip module will be installed in /usr/lib/python2.7/dist-packages.
The sip.h header file will be installed in /usr/include/python2.7.
The default directory to install .sip files in is /usr/share/sip.
Creating siplib/sip.h...
Creating siplib/siplib.c...
Creating siplib/siplib.sbf...
Creating sipconfig.py...
Creating top level Makefile...
Creating sip code generator Makefile...
Creating sip module Makefile...
6
задан 14 April 2015 в 19:18

1 ответ

необходимо установить sip первый (не, только настраивают его)

begueradj@begueradj:~/Bureau/sip-4.16.7# python configure.py 
begueradj@begueradj:~/Bureau/sip-4.16.7# make
begueradj@begueradj:~/Bureau/sip-4.16.7# make install

, и затем можно установить PyQt:

begueradj@begueradj:~/Bureau/PyQt-gpl-5.4.1# python configure-ng.py

или

begueradj@begueradj:~/Bureau/PyQt-gpl-5.4.1# python configure-ng.py --sip /usr/bin/sip  
7
ответ дан 15 April 2015 в 05:18

Другие вопросы по тегам:

Похожие вопросы: