2015-02-06 126 views
0

我正試圖在Python 3.4上安裝PyQt5。我已經安裝了SIP,但是當我嘗試運行PyQt5蟒蛇configure命令我碰到下面的錯誤:在Windows上安裝PyQt5

Querying qmake about your Qt installation... 
Determining the details of your Qt installation... 
C:\Qt\5.4\mingw491_32\bin\qmake.exe -spec win32-msvc2010 -o qtdetail.mk qtdetail.pro 
nmake -f qtdetail.mk release 


Microsoft (R) Program Maintenance Utility Version 12.00.21005.1 

Copyright (C) Microsoft Corporation. All rights reserved. 



    "D:\Applications\Microsoft Visual Studio 12.0\VC\bin\nmake.exe" -f qtdetail.mk.Release 



Microsoft (R) Program Maintenance Utility Version 12.00.21005.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 -DNDEBUG -I"..\..\..\..\Qt\5.4\mingw491_32\include" -I"..\..\..\..\Qt\5.4\mingw491_32\include\QtCore" -I"release" -I"..\..\..\..\Qt\5.4\mingw491_32\mkspecs\win32-msvc2010" -Forelease\ @C:\Users\AK\AppData\Local\Temp\nmAE97.tmp 

qtdetail.cpp 

..\..\..\..\Qt\5.4\mingw491_32\include\QtCore/qglobal.h(38) : fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory 

NMAKE : fatal error U1077: '"D:\Applications\Microsoft Visual Studio 12.0\VC\bin\cl.EXE"' : return code '0x2' 

Stop. 

NMAKE : fatal error U1077: '"D:\Applications\Microsoft Visual Studio 12.0\VC\bin\nmake.exe"' : return code '0x2' 

Stop. 
+2

爲什麼不在Windows上使用[binary packages](http://www.riverbankcomputing.com/software/pyqt/download5)? – Smasho 2015-02-06 21:04:46

回答

0

嘗試執行相同的命令,但是從「Visual Studio命令提示符」。它的外殼已經設置了相應的環境。 如果不是,prebuilt binary packages是一種更簡單的方法

0

您可以嘗試運行預構建的安裝程序。 Windows系統中的預建安裝程序是exe文件,因此您只需單擊下一個按鈕即可使其運行良好。