繁体   English   中英

如何安装SIP makefile以使用PyQt?

[英]How do I install SIP makefile to use PyQt?

我想安装Sip以与PyQt一起使用。

  1. 我已经解压缩了SIP下载
  2. 我运行Windows命令提示符并将dir更改为C:\\ Python \\ sip \\
  3. 我运行了configure.py脚本,但我确实先尝试了python configure.py但是因为我将sip文件夹解压缩到C:\\ Python中,所以我无法通过命令行来识别python shell
  4. 这在命令提示符下返回了makefile,我无法再使用make,它只是给了我'make' is not recognized的错误'make' is not recognized
  5. 我调查了一下,以为我会使用minGW解决这个问题
  6. 现在我的命令提示符显示:

    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...

  7. 然后我运行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-makemingw32-make install

我在python Wiki上发现了这一讽刺意味!

https://wiki.python.org/moin/BuildPyQt4Windows

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM