如何安装SIP makefile以使用PyQt
How do I install SIP makefile to use PyQt?
我想安装sip与PyQt一起使用。
- 我已打开sip下载
- 我运行了Windows命令提示符,并将目录更改为C:\Python\sip\
- 我运行了
configure.py
脚本,我确实先尝试了python configure.py
,但因为我将sip文件夹解压缩到C:\Python中,所以我无法获得识别Python外壳的命令行 - 这在命令提示符下返回了makefile,然后我无法使用make,它只是给了我错误
'make' is not recognized
- 我研究了一下,认为我可以通过使用minGW来解决这个问题
-
现在我的命令提示符显示:
C:Pythonsip>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:Python27Libsite-packages. The sip.h header file will be installed in C:Python27include. The default directory to install .sip files in is C:Python27sip. Creating siplibsip.h... Creating siplibsiplib.c... Creating siplibsiplib.sbf... Creating sipconfig.py... Creating top level Makefile... Creating sip code generator Makefile... Creating sip module Makefile...
-
然后我运行make,得到
C:Pythonsip>make 'make' is not recognized as an internal or external command, operable program or batch file.
我已经搜索了Stack,有些已经接近答案,但还没有什么能让我完全找到答案。
我正在考虑下载visualstudio,因为我一直在读到你应该在windows上运行makefile。
这是正确的还是我看错地方了?
所以我找到了使用make的正确方法。我必须设置我的路径以包括mnGW并使用:mingw32-make
和mingw32-make install
具有讽刺意味的是,我在python wiki上发现了这一点!
https://wiki.python.org/moin/BuildPyQt4Windows
- 针对遗留库的链接:来自预制makefile的-lgfortranbegin
- 需要将一行代码从C++ Qt翻译成PyQt
- 使用 Makefile 中的头文件编译 Pybind (不使用 cmake)
- 如何在使用Makefile构建后在cmd中运行该程序?
- Makefile g++ 使用命令行中的 -D 变量进行编译,默认值
- @CPPFLAGS@在 Makefile.in 中意味着什么?
- 如何在macOS上使用Makefile?
- Makefile 创建两个库 - 一个依赖于另一个
- 我将 Makefile 更改为 C++11 版本,但仍然收到列表初始值设定项错误
- Arduino-Makefile:编译器无法编译用户库 cpp 文件
- Makefile by ocaml 和 cpp 扩展名
- C++ 如何将两个 makefile 对象目标规则(位于另一个文件夹中)合并到一个目标/规则中?
- 从 Makefile 中的 $@ 获取文件名
- PyQT - 在 QTableWidget 单元格中显示垂直文本
- 如何使用 Makefile 使用 VTK 库编译项目?
- 在 Windows 10 下为 VTK 生成 Makefile 时,Qt mkspecs 的路径错误
- 如何在makefile中包含tensorflow c ++".so"文件?
- 有没有办法从Makefile访问VS Code c_cpp_properties.json文件中的定义
- 使用单个makefile编译C和C++
- 如何安装SIP makefile以使用PyQt