尝试安装 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)有关...?
提前感谢您的任何评论。