- Install pyqt5 windows python 2.7 install#
- Install pyqt5 windows python 2.7 32 bit#
- Install pyqt5 windows python 2.7 professional#
I chose to point them at the system Python install (c:\Python27\include and c:\Python27\libs.) It should now be as simple as If you're using a virtual environment for Python you might have to modify the makefile for SIPLib since it hard codes dependencies on the location of the Python include subdirectory and the libs subdirectory. Don't run these commands from a standard shell, use the Visual Studio tools command shell instead, so that your path includes the compiler, and also so that the INCLUDE, LIBS, and LIBPATH environment variables are set. There are three commands to build and install SIP. Make sure that the bin subdirectory of your Qt install is in your system path.This could be important if there is any static linkage between the Qt install and PyQt (which could lead to getting a binary incompatibility of the linked object files.) Get Qt from Note that Qt has extra considerations around licensing, so you might want to take a look at first. Also, (even though I think that it shouldn't matter), I made sure to get the version of Qt that was built with the same version of the MSVC compiler that I have.
Install pyqt5 windows python 2.7 32 bit#
If you're using 32 bit Python make sure that you get 32 bit Qt. You're going to need to have an appropriate version of qt.
Install pyqt5 windows python 2.7 professional#
I have the professional version but I assume that the community version will work too.
LD_LIBRARY_PATH= $QT5_PATH/lib python configure.py -qmake= $QT5_PATH/bin/qmake
LD_LIBRARY_PATH= $QT5_PATH/lib python configure.py -confirm-license -no-docstrings -no-designer-plugin -no-tools -enable=QtWidgets -enable=QtCore -enable=QtGui -enable=QtPrintSupport -enable=QtPositioning -enable=QtNetwork -enable=QtQuick -enable=QtQuickWidgets -enable=QtWebChannel -enable=QtQml -qmake= $QT5_PATH/bin/qmake QMAKE_LFLAGS_RPATH=Įcho "= Install PyQtWebEngine = " Python configure.py -sip-module=PyQt5.sipĮcho "= Install PyQt5 = " # add -verbose if more information needed # Remove -nv to have info on the download. Sudo apt-get install -y msgpack-python python-gevent python-dev build-essential libgl1-mesa-dev qt512-meta-minimal qt512webengine qt512svgĮcho "= Install SIP = " # Install Qt5, QtWebEngine and QtSvg (for creating a browser) Sudo add-apt-repository -yes ppa:beineri/opt-qt-5.12.0-xenial ONLY FOR LINUX!Įcho "= Install QT 5.12.0 = " # This was painful for me so I though I would share.