Can I use PyQt for both C++ and Python?
<p>I'd like to learn Qt both on Python and C++. I am on Windows.</p>

<p>Is instaling PyQT5 with <code>pip3 install pyqt5</code> enough for C++ development or do I still have to install both Qt and PyQt?</p>

<p>How do I do the second option?</p>

<p>For C++ development you're going to need a C++ compiler. On Windows Qt supports both the Mingw and Visual Studio toolchains. From there, I don't believe pyqt includes the header files you're going to need for C++ development and I cannot say for certain what toolchain it was compiled with. </p>

<p>Your best bet is either install the official Qt binaries for your compiler, or build the binaries from source (the later will take some time and effort.)</p>

<p>If you want to mix both C++ and Python in a single Qt project, check out <a href="https://www.riverbankcomputing.com/software/sip/intro" rel="nofollow">SIP bindings</a>.</p>

<p>Another thing to keep in mind is that pyqt5 comes with the LGPL licensed version of Qt by default. This may or may not be appropriate for your project(s), but StackOverflow isn't intended to discuss licensing issues.</p>

python c++ pyqt