[英]How do I install SIP makefile to use PyQt?
I want to install sip to use with PyQt. 我想安装Sip以与PyQt一起使用。
configure.py
script, I did try the python configure.py
first but because I unpacked the sip folder into C:\\Python I couldn't get command line to recognise the python shell 我运行了configure.py
脚本,但我确实先尝试了python configure.py
但是因为我将sip文件夹解压缩到C:\\ Python中,所以我无法通过命令行来识别python shell 'make' is not recognized
这在命令提示符下返回了makefile,我无法再使用make,它只是给了我'make' is not recognized
的错误'make' is not recognized
Now my command prompt shows: 现在我的命令提示符显示:
C:\\Python\\sip>configure.py --platform win32-g++ This is SIP 4.17 for Python 2.7.11 on win32. The SIP code generator will be installed in C:\\Python27. The sip module will be installed in C:\\Python27\\Lib\\site-packages. The sip.h header file will be installed in C:\\Python27\\include. The default directory to install .sip files in is C:\\Python27\\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...
I then run make and i get 然后我运行make,我得到了
C:\\Python\\sip>make 'make' is not recognized as an internal or external command, operable program or batch file.
I've searched through Stack and some are close to the answer but nothing has got me quite there yet. 我已经搜索了Stack,有些答案很接近,但是还没有什么让我知道的。
I'm looking into downloading visual studio as I have been reading that your supposed to run the makefile from there on windows. 我正在考虑下载Visual Studio,因为我一直在阅读您应该在Windows上从那里运行Makefile的信息。
Is this correct or am I looking in the wrong place? 这是正确的还是我找错了地方?
So I've found the correct way to use make. 因此,我找到了使用make的正确方法。 I had to set my path to include mnGW and use: mingw32-make
and mingw32-make install
我必须设置路径以包含mnGW并使用: mingw32-make
和mingw32-make install
I found this ironically on the python wiki! 我在python Wiki上发现了这一讽刺意味!
https://wiki.python.org/moin/BuildPyQt4Windows https://wiki.python.org/moin/BuildPyQt4Windows
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.