The author saw some examples of PyQt small programs for interface development, feeling simple enough to understand, so the idea of installation occurred. Because the virtual machine is not easy to use, so simply win864 on the busy.
The first step is to install python2.7 without too much difficulty, just download and install it from the official python web site.
Problems occur when install pyQT4 in the url: http://www.riverbankcomputing.com/news software TAB, you can find the pyQT4 download, and download the Windows version of the installer: PyQt – win – the GPL – 4.11. Zip.
When I unzip the package, I find a conap.py file, look up the installation guide, and find that it should be executed first to automatically generate makefiles for later use.
Error 1: PyQt4 installation failure prompt No Module named Sipconfig
Originally want to install PyQt4 even to install a SIP, SIP is also magic – http://www.riverbankcomputing.co.uk/software/sip/intro points out that Python is cow force, because it can use library written in C and C + +, and SIP is the C/C + + library into a Python library artifacts.
Also in the link of http://www.riverbankcomputing.com/news, a software of tag can download the SIP, we choose to download the SIP – 4.16. Zip
When you download and unzip, you’ll find a conap.py file in the package, the same one used to generate makefiles.
After producing the Makefile, we should use the Visual Studio command prompt to execute the nmake instruction.
Problem # 2 is encountered: Make failure — Fatal Error LNK1112: Module computer type “X86” conflicts with target computer type “x64”
Alas, the 64-bit system is no longer compatible with 32-bit software. (I’m not sure, but I probably got the native platform through SYS when I was doing configure, so I set the target platform to X64.)
To observe the configure. Py — — show – platforms. The supporting platforms are found as follows:
Configure.py — Platform Win32-MSVC2010 (my VS command line is version 2010)
Next, nmake compiles successfully!
Then nmake Install finds that the make has been copied to the Python installation directory.
Next, do the same thing for PyQt. Conconfigure. Py. At this point, I encountered problem 3:
Make sure you have a working Qt qmake on your PATH
Yeah, we still can’t, because we don’t have QT.
We installed QT and found that QT also required MinGW support, so we installed MinGW first and then QT.
Finally we have qmake, in the path of the environment variable, add the path of qmake. Exe
Qmake can’t use at this time, however, a problem 4: QMAKESPEC has not had the set, so configuration always be deduced.
The location of the g++ folder at qt needs to be configured as the value of the environment variable QMAKESPEC.
Make configuration: QMAKESPEC = E:\Qt\4.3.4\mkspecs\win32-g++
Execute qmake again, and it works.
Configure again, error. Confivure. Py — — verbose. It was found that there is no environment variable configured with g++, so we need to add g++ path: E:\Program Files\MinGW\bin to the environment variable path.
CMD input, g++ error, say stop working. A query later found g++ is incompatible with win8.
Abandon this path altogether. Turn to
As described in http://blo g.sina.com.cn/s/blog_913c0a8f01010fj7.html, the experience of debugging during a failure can prevent you from making mistakes again. I’m sorry I couldn’t solve the problem.
Read More:
- Record of solving the failure of installing ie11 (9c59) under 64 bit Windows 7 system
- Python 3 install pyqt5
- Vtk8.2.0 (32bit + 64bit) compilation and installation test (win10 + vs2017 + Qt5)
- Installing PyQt4 in Windows + Python 3.6
- Python – writing visual interface (Python + pycharm + pyqt)
- Package python3.1 + PyQt4 into exe
- Configuring OpenGL development environment in win10 + vs2015 (including the method of installing 32-bit and 64 bit libraries)
- Installing xgboost in anaconda is based on win10 32 / 64 bit system
- Win10 install iTunes appears: “installation assembly microsoft.VC80 . CRT, tupe = Win32, version = 8.0.50727.6195 “…”
- VirtualBox for macOS NS_ ERROR_ Failure (0x80004005) problem solving record
- Solutions for failure to start Axure RP (including failure to uninstall or install. Net framework)
- brew link sip error
- Solutions to the failure of importing Python 3.7 SSL module
- Solution to the error “tcnative-1.dll: can’t load amd 64 bit. DLL on IA 32 bit platform”
- yarn install gyp verb `which` failed python2 Error: not found: python2
- Ora-02292: integrity constraint (XX) violated – child record found foreign key Association, record cannot be deleted
- Install pygame-1.9.3 for python 3.6
- Record the python package EXE file running error importerror, but do not prompt specific error solution
- Solution: PIP install MySQL Python has the following problems
- Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.* signatures do not match the previously