Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
189 views
in Technique[技术] by (71.8m points)

python - How to install PyQt5 on Windows?

When I try installing the PyQt5 on Windows using the command

python configure.py

I get this error:

Error: Make sure you have a working Qt qmake on your PATH.

I got the pyQt5 from PyQt5 Download.

How can I install PyQt5?


Update:

I installed Qt 5.0.2 for Windows 64-bit (VS 2012, 500 MB) from the Qt Download page and now I have this error:

Querying qmake about your Qt installation...
Determining the details of your Qt installation...
Error: Failed to determine the detail of your Qt installation. Try again using
the --verbose flag to see more detail about the problem.

And when I execute the command python configure.py --verbose:

Querying qmake about your Qt installation...
Determining the details of your Qt installation...
C:QtQt5.0.25.0.2msvc2012_64inqmake.exe -spec win32-msvc2008 -o qtdetail.m
k qtdetail.pro
nmake -f qtdetail.mk release
'nmake' n?o é reconhecido como um comando interno
ou externo, um programa operável ou um arquivo em lotes.
Error: Failed to determine the detail of your Qt installation. Try again using
the --verbose flag to see more detail about the problem.

I added C:Program Files (x86)Microsoft Visual Studio 11.0VCin (contains nmake.exe) to PATH and I got this error:

Querying qmake about your Qt installation...
Determining the details of your Qt installation...
C:QtQt5.0.25.0.2msvc2012_64inqmake.exe -spec win32-msvc2008 -o qtdetail.mk qtdetail.pro
nmake -f qtdetail.mk release


Microsoft (R) Program Maintenance Utility Version 11.00.50727.1

Copyright (C) Microsoft Corporation.  All rights reserved.


  "C:Program Files (x86)Microsoft Visual Studio 11.0VCin
make.exe" -f qtdetail.mk.Release


Microsoft (R) Program Maintenance Utility Version 11.00.50727.1

Copyright (C) Microsoft Corporation.  All rights reserved.

  cl -c -nologo -Zm200 -Zc:wchar_t -O2 -MD -GR -W3 -w34100 -w34189 -EHsc -DUNICODE -DWIN32 -DQT_NO_DEBUG -DQT_CORE_LIB -I"..............QtQt5.0.25.0.2msvc2012_64include" -I"..............QtQt5.0.25.0.2msvc2012_64includeQtCore" -I"release" -I"..............QtQt5.0.25.0.2msvc2012_64mkspecswin32-msvc2008" -Forelease @C:UsersVictorAppDataLocalTemp
m68EA.tmp

NMAKE : fatal error U1077: '"C:Program Files (x86)Microsoft Visual Studio 11.0VCincl.EXE"' : return code '0xc0000135'

Stop.

NMAKE : fatal error U1077: '"C:Program Files (x86)Microsoft Visual Studio 11.0VCin
make.exe"' : return code '0x2'

Stop.
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Mainly I use the following command under the cmd

pip install pyqt5

And it works with no problem!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...