[英]How do I install SIP makefile to use PyQt?
我想安装Sip以与PyQt一起使用。
configure.py
脚本,但我确实先尝试了python configure.py
但是因为我将sip文件夹解压缩到C:\\ Python中,所以我无法通过命令行来识别python shell 'make' is not recognized
的错误'make' is not recognized
现在我的命令提示符显示:
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...
然后我运行make,我得到了
C:\\Python\\sip>make 'make' is not recognized as an internal or external command, operable program or batch file.
我已经搜索了Stack,有些答案很接近,但是还没有什么让我知道的。
我正在考虑下载Visual Studio,因为我一直在阅读您应该在Windows上从那里运行Makefile的信息。
这是正确的还是我找错了地方?
因此,我找到了使用make的正确方法。 我必须设置路径以包含mnGW并使用: mingw32-make
和mingw32-make install
我在python Wiki上发现了这一讽刺意味!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.