Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Installing pyqt6 and pyqt6-tools: MacOS
Forum Updated to NodeBB v4.3 + New Features

Installing pyqt6 and pyqt6-tools: MacOS

Scheduled Pinned Locked Moved Unsolved Qt for Python
4 Posts 2 Posters 3.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cshea
    wrote on 23 Dec 2023, 14:45 last edited by
    #1

    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.

    1 Reply Last reply
    0
    • S SGaist moved this topic from General and Desktop on 23 Dec 2023, 19:02
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 23 Dec 2023, 19:03 last edited by
      #2

      Hi,

      Which version of macOS ?
      On which architecture ?
      What are you using to install the packages ? Pip ? Conda ? Building by hand ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      C 1 Reply Last reply 26 Dec 2023, 10:18
      0
      • S SGaist
        23 Dec 2023, 19:03

        Hi,

        Which version of macOS ?
        On which architecture ?
        What are you using to install the packages ? Pip ? Conda ? Building by hand ?

        C Offline
        C Offline
        cshea
        wrote on 26 Dec 2023, 10:18 last edited by cshea
        #3

        @SGaist

        MACOS: Sonoma 14.2.1 (23C71)
        M1 Max

        I'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/bin

        current .zshrc:
        eval "$(/opt/homebrew/bin/brew shellenv)"

        S 1 Reply Last reply 31 Dec 2023, 21:15
        0
        • C cshea
          26 Dec 2023, 10:18

          @SGaist

          MACOS: Sonoma 14.2.1 (23C71)
          M1 Max

          I'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/bin

          current .zshrc:
          eval "$(/opt/homebrew/bin/brew shellenv)"

          S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 31 Dec 2023, 21:15 last edited by
          #4

          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.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          1/4

          23 Dec 2023, 14:45

          • Login

          • Login or register to search.
          1 out of 4
          • First post
            1/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved