[英]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.