Installing pyqt6 and pyqt6-tools: MacOS
-
wrote on 23 Dec 2023, 14:45 last edited by
I have spent the last 6 days trying to install pyQT6 and PyQt6-tools on my Mac.
I have tried:
-locally using different versions of python (3.8, 3.9, 3.10)- via homebrew
I've followed several online tutorials for getting this to work with home-brew but nothing seems to work.
Can someone provide a definitive guide or source of a guide to get this installed and working on a MACOS.
Im able to install PyQt6 but pyqt6-tools always fails. Either. get errors advising issues with sip during metadata build or it just hangs on building it.
Please can someone help? I am a newb trying to learn but it seems I can't get past the first hurdle.
- via homebrew
-
-
Hi,
Which version of macOS ?
On which architecture ?
What are you using to install the packages ? Pip ? Conda ? Building by hand ? -
Hi,
Which version of macOS ?
On which architecture ?
What are you using to install the packages ? Pip ? Conda ? Building by hand ?wrote on 26 Dec 2023, 10:18 last edited by csheaMACOS: Sonoma 14.2.1 (23C71)
M1 MaxI'm using Pycharm and want to be able to create Gui in QT designer.
Whatever method is best is fine. I have tried hombrew again following the attached link which seems to be giving better results. Managed to get pipenv and an isolated version of python installed/linked in pycharm from the home-brew directory.
https://mac.install.guide/homebrew/3.html
The issue is:
How do I correctly install PyQt from here? If I use the brew install option it includes qtdesigner and all of the libcairo files which have been missing from other methods but I can't see these within PyCharm when I start a new project? I'm obviously missing somthing basic.Am I better off installing pqt6 and pyqt6-tools via pip?
do I need my projects folder within the brew file location?
current path file|:
echo $PATH
/opt/homebrew/Cellar/pyqt/6.6.1/BIN:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bincurrent .zshrc:
eval "$(/opt/homebrew/bin/brew shellenv)" -
MACOS: Sonoma 14.2.1 (23C71)
M1 MaxI'm using Pycharm and want to be able to create Gui in QT designer.
Whatever method is best is fine. I have tried hombrew again following the attached link which seems to be giving better results. Managed to get pipenv and an isolated version of python installed/linked in pycharm from the home-brew directory.
https://mac.install.guide/homebrew/3.html
The issue is:
How do I correctly install PyQt from here? If I use the brew install option it includes qtdesigner and all of the libcairo files which have been missing from other methods but I can't see these within PyCharm when I start a new project? I'm obviously missing somthing basic.Am I better off installing pqt6 and pyqt6-tools via pip?
do I need my projects folder within the brew file location?
current path file|:
echo $PATH
/opt/homebrew/Cellar/pyqt/6.6.1/BIN:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bincurrent .zshrc:
eval "$(/opt/homebrew/bin/brew shellenv)"Any chances you have Python 3.12 for your environment ?
If so, downgrade to 3.11. At least pip installation of PyQt6-tools worked with that version of Python.
1/4