尝试安装PyQt 5.3.2,到目前为止我已经安装了Qt和SIP。
(运行Windows 7,Python 3.4,SIP 4.16.4,Qt 5,Gnu make 3.8.1)。
以下是DOS窗口中的文字:
C:\sip-4.16.4>python configure.py --platform win32-g++
This is SIP 4.16.4 for Python 3.4.2 on win32.
The SIP code generator will be installed in C:\Python34.
The sip module will be installed in C:\Python34\Lib\site-packages.
The sip.h header file will be installed in C:\Python34\include.
The default directory to install .sip files in is C:\Python34\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...
C:\sip-4.16.4>"C:\Program Files (x86)\GnuWin32\bin\make" install
make[1]: Entering directory `C:/sip-4.16.4/sipgen'
makefile:29: warning: overriding commands for target `.c.o'
makefile:26: warning: ignoring old commands for target `.c.o'
gcc -c -O2 -w -DNDEBUG -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -o main.o main.c
process_begin: CreateProcess(NULL, gcc -c -O2 -w -DNDEBUG -DUNICODE -DQT_LARGEFI
LE_SUPPORT -I. -o main.o main.c, ...) failed.
make (e=2): The system cannot find the file specified.
make[1]: *** [main.o] Error 2
make[1]: Leaving directory `C:/sip-4.16.4/sipgen'
make: *** [install] Error 2
目前尚不清楚缺少哪个文件...它似乎是“main.o”,但Makefile没有命名这样的文件 - 见下文:
all:
@$(MAKE) -C sipgen
@$(MAKE) -C siplib
install:
@$(MAKE) -C sipgen install
@$(MAKE) -C siplib install
@if not exist C:\Python34\Lib\site-packages mkdir C:\Python34\Lib\site-packages
copy /y sipconfig.py C:\Python34\Lib\site-packages\sipconfig.py
copy /y C:\sip-4.16.4\sipdistutils.py C:\Python34\Lib\site-packages\sipdistutils.py
clean:
@$(MAKE) -C sipgen clean
@$(MAKE) -C siplib clean
我花了大量时间来达到这一点,并做了很多次搜索。当我发现类似的东西时,线程在没有分辨率的情况下死亡。 请注意,我的Unix / Linux背景几乎不存在,所以我希望这是一个微不足道的错误。可能与两个makefile警告有关(#29,#26)......?
提前感谢任何评论。