- How To Install Pyqt5 For Mac Os 10.10
- How To Install Pyqt5 For Mac Os Virtualbox
- How To Install Pyqt5 For Mac Os Bootable
- Install Pyqt5 Tools
Cd /Downloads/sip-4.17 python configure.py. Which worked, and then I tried. Cd /Downloads/PyQt-gpl-5.5.1 python configure.py -qmake /Users/name/Qt/5.5/clang64/bin/qmake. Which returns an error that says. Make sure you have a working sip on your PATH or use the. Mac OS X Mac OS X binaries to install PySide are available from the Qt Project. For PyQt, use the binaries provided by the PyQtX project. Choose the complete version for your Python version, which supplies Qt as well as PyQt, unless you're certain that you have Qt installed in the correct version; then use the minimal installers.
25 Nov 2015 #OS X#Python#PyQtThis quick guide details compiling sip and PyQt5 on OS X 10.11 (El Capitan) using Homebrew for Qt5 installtion.
- I have installed PyQt5 with pip and used it successfully with Python v3 and run through a tutorial. In looking at tutorials for Qt Designer I see instructions to use pip install pyqt5-tools but it appears that there are only wheels available for Win32. How can I use Qt Designer or some equivalent tool on the Mac?
- I play video games with my kids. Thank you for watching! If you like the video, be sure to click 'Like' so YouTube can share it with others. Subscribe to get our latest videos.
In case you don’t have Homebrew installed:
Let’s start with installing the latest version of Python 2.x, Qt5, as well as wget using brew:
While that is “brewing”, make sure you have Xcode installed (can be installed via the Mac App Store). When Xcode is installed, also make sure you have its command-line tools installed and that you have agreed to Apple’s license agreement:
Then let’s download the PyQt5 source for Linux and OS X and the prerequisite SIP source.
Double-check that the newly installed Python 2.7.x is being used when just executing python:
Untar and compile (also double check the path to your qmake):
Please note, you may want want to check out the options in the
configure.py
files prior to configuring/compiling.You may now import PyQt5 as a module in Python 2.7!
Please enable JavaScript to view the comments powered by Disqus.Here are some instructions to freeze Python applications that are compatiblewith versions of OS X earlier than the one that PyInstaller is used on.
Ranger's apprentice costume. These steps involve compiling and installing Python, PyQt5 etc. manually.Surprisingly, on my 2016 MacBook, it didn't take too long to set up. The basicidea is that Apple's LLVM/clang compiler can produce binaries that arecompatible with earlier versions of Mac OS X, but special compiler flags need tobe set so that the compiler uses the appropriate SDK.
These notes document, for reference, roughly what steps I did to make this work.I'm sure there might be other solutions, or there might be problems I haven'tfound out about yet. In any case, no guarantees.
Here I'll use the Mac OS X 10.8 Mountain Lion SDK to freeze python applicationsthat are compatible with that version of the os. A wonderful tool to manage OSX SDK's is the Xcodelegacy project (Xcode just has thisdistasteful habit of removing SDKs when it deems them to have sat there longenough).
A clean environment
First, set up a clean environment. You want to make sure you won't interferewith other Python environments and libraries. I created a directory
/opt/env-osx108
, and to set up the environment I use the followinginstructions, which I've saved in a file /opt/env-osx108/SETUP_ENV.txt
:This way, we can set up the environment simply by sourcing this file: How to remove collar divinity 2.
UPDATE: I added the
-I..
and -L..
in CFLAGS
etc later, after havingcompiled python, pyqt etc., but before openssl. This shouldn't make a difference,though, right?Python
I compiled and installed Python manually, using the Mac 10.8 SDK. I downloadedthe python source from their download page,and ran the configure script as follows:
To look up a product key for a particular product version (2010 and later), you can also go to: Look Up Product Keys. Older product keys If you can't find the product key for older versions of Autodesk software (2013 and later), you may be able to find it in a text file in the installation folder. ![Autocad 2019 product code](http://warezcrack.net/wp-content/uploads/2016/05/AutoCAD-Architecture-2016-Product-Key-Crack-Free-Download.jpg)
![Autocad 2019 product code](http://warezcrack.net/wp-content/uploads/2016/05/AutoCAD-Architecture-2016-Product-Key-Crack-Free-Download.jpg)
(It is inspired by homebrew's python formula.)
Make with
make
and make install PYTHONAPPSDIR=/opt/env-osx108/Applications
pip packages
Pure-source python packages can be installed with
pip3 install <pkg>
w/o anyproblem.Make sure you don't install wheels of binaries. You can use
You can also use
--verbose
to verify compilation commands.SIP & PyQt5
![High High](https://pic1.zhimg.com/v2-0cc52052c90d434b3fd0b67692a77538_r.jpg)
First, install Qt5. The last version of Qt5 that is compatible with MountainLion is Qt 5.7.1, which is availablefrom Qt's archives.
My Qt5 installation is in
/opt/Qt5.7.1
, with qmake
at the location/opt/Qt5.7.1/5.7/clang_64/bin/qmake
.It is tempting to install python wheels with
pip3 install PyQt5
, but it turnsout that the binaries provided are not compatible with Mountain Lion (eventhough the wheel's filename suggests that it's compatible with mac 10.6).First we compile & install sip. I downloaded this filefrom PyQt5's download files and extracted it. I used thefollowing configure command:
(Remember that
$MACOSXSDK
is the full path to the *.sdk
folder.)For some reason, however, running
make
didn't seem to use the correctSDK. (You can inspect which version of OSX a binary is compiled for by usingotool -l ..
and looking for a LC_VERSION_MIN_MACOSX
section.) So I hackedaround the make command to achieve what I wanted:and then
![How To Install Pyqt5 For Mac Os How To Install Pyqt5 For Mac Os](/uploads/1/1/8/9/118956797/277474164.jpg)
I followed a similar procedure for
PyQt5
, using this download.Here is the configure command I used:For the compilation step, the wrong SDK was being used and I had no idea how tofix it properly. So I ended up hacking the Makefile, to replace all instancesof the wrong SDK with the correct SDK. On my system, the makefiles in
QtCore/Makefile
etc. all had explicit flags -isysroot /Applications/Xcode.app/../SDKs/MacOSX10.13.sdk
, referring to my actualcurrent system and not the SDK I wanted PyQt5 to use, so I ran a perlone-liner to replace all these flag instances with the correct SDK reference:and then, as usual,
Finally, I also had trouble getting
QLibraryInfo
to report the right paths.This caused a crash with an error message about Qt not being able to find thecocoa platform plugin. Curiously, that turned out to be a problem with thebase Qt library apparently, not PyQt's. I fixed that by creating the file/opt/env-osx108/Frameworks/Python.framework/Versions/3.6/Resources/Python.app/Contents/Resources/qt.conf
with the following contents:OpenSSL
Compile a more recent version of OpenSSL for
requests
and other crypto/https-related packages.I downloaded openssl here, version 1.0.2r; untarred in local directory. With theenvironment set up as above, ran the configure command:
And then:
I could then install SSL stuff required by
requests
:How To Install Pyqt5 For Mac Os 10.10
PyInstaller
How To Install Pyqt5 For Mac Os Virtualbox
Can be installed using pip:
How To Install Pyqt5 For Mac Os Bootable
(Actually it looks like these don't compile any binaries, so you probably don'tneed fancy options like I used.)
Install Pyqt5 Tools
I also symlinked the pyinstaller executable to the environment's binary dir:
That's it! Now I can freeze PyQt5 applications with PyInstaller that can run onMountain Lion or later.