簡體   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