3 ms·
Has the python qt installation story improved much recently? A few years ago it was a pain to set up, especially within a virtualenv, which was one of my only c
by makmanalp 8y ago
Has the python qt installation story improved much recently? A few years ago it was a pain to set up, especially within a virtualenv, which was one of my only complaints with it. Everything else was wonderful.
- mherrmann 8y agoYou can just do `pip install PyQt5` now. That is possible without a virtual environment, but in practice I think you still want to use one: python3 -m venv venv && source venv/bin/activate && pip install PyQt5.
- simonh 8y agoHow well does that work on OSX? I’ve tried many times over many years, but never got a satisfactory working Python + Qt development environment working on the Mac.
- RayDonnelly 8y agoconda install pyqt
- RayDonnelly 8y agoWhy was this downvoted? It will setup exactly what was asked for. Specifically qt 5.9.5 with PyQt.
- mkl 8y ago>>> You can just do `pip install PyQt5` now. >> How well does that work on OSX? > conda install pyqt Your comment, while presenting a potential solution to the original problem, did not make sense in context and went off in another direction entirely.
- RayDonnelly 8y agoDid you miss that I was replying to simonh, and to be specific, to this part? > I’ve tried many times over many years, but never got a satisfactory working Python + Qt development environment working on the Mac.
- fernly 8y agoWith Python3 and PyQt5 it is literally as simple as "pip install pyqt5". I speak from having built and maintained multiple PyQt-based apps on MacOS. Edit: I should say, there are MacOS-unique difficulties if you want to bundle your nice PyQt5 script into a standalone MacOS app bundle using PyInstaller. But that's a separate issue.
- ris 8y agopip installing binary dependencies! What could go wrong?
- guipsp 8y agoWhat could go wrong?
- e12e 8y agoMix of dynamic libraries, missing libraries, mismatch between libc versions. Requirements for a c compiler to be available. But all of these things have improved greatly, in my recent experience.
- e12e 8y agoWith the new binary wheels, this actually works now - at least on Windows 10 and misc Linux distros (and according to other comments here, on Mac OS too). On Linux you might want to get the distros qt/qt-dev packages, as usual. But as far as I can recall, you generally don't have to.
- ris 8y agoGreat - installing random (huge) binaries that have been compiled god-knows-how by god-knows-whom expecting god-knows-what other libraries to be on the target system.