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. Where do I find pyside6-deploy?
Forum Updated to NodeBB v4.3 + New Features

Where do I find pyside6-deploy?

Scheduled Pinned Locked Moved Solved Qt for Python
9 Posts 6 Posters 3.5k Views 2 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.
  • J Offline
    J Offline
    jaydub
    wrote on last edited by
    #1

    I read in the docs about pyside6-deploy for deploying Qt/Python apps, but I have no idea where to find pyside6-deploy.

    Can someone point me in the right direction?

    I am using Qt open source on MacOS.

    Thank you.

    JonBJ CristianMaureiraC 2 Replies Last reply
    0
    • J jaydub

      I read in the docs about pyside6-deploy for deploying Qt/Python apps, but I have no idea where to find pyside6-deploy.

      Can someone point me in the right direction?

      I am using Qt open source on MacOS.

      Thank you.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @jaydub
      This is an excellent question! Since https://doc.qt.io/qtforpython-6/deployment/index.html says

      starting with 6.4, we ship a new tool called pyside6-deploy that deploys your PySide6 application to all desktop platforms - Windows, Linux, and macOS

      I can only assume that, so long as your are on PySide 6.4+ it comes with the PySide6 download. Have you had a good look through whatever area that fills with its files?

      https://github.com/qtproject/pyside-pyside-setup/blob/dev/doc/changelogs/changes-6.4.0 includes among listed changes:

      • [PYSIDE-1612] A tool for deployment, pyside6-deploy, has been added.

      Don't ask me how you use it, but https://github.com/qtproject/pyside-pyside-setup/tree/dev/sources/pyside6/tests/tools/pyside6-deploy seems to be where it is tested from(?), maybe that gives clues?

      1 Reply Last reply
      0
      • J jaydub

        I read in the docs about pyside6-deploy for deploying Qt/Python apps, but I have no idea where to find pyside6-deploy.

        Can someone point me in the right direction?

        I am using Qt open source on MacOS.

        Thank you.

        CristianMaureiraC Offline
        CristianMaureiraC Offline
        CristianMaureira
        wrote on last edited by
        #3

        @jaydub When you pip install pyside6 in your virtual environment, you get all the pyside6-* tools in your PATH. They will live inside the <virtual environment>/bin directory. The same applies with pyside6-uic, pyside6-rcc, pyside6-designer (yeah, we ship designer), etc.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Shyamnath
          wrote on last edited by
          #4

          when you do a pip install PySide6, it should automatically install pyside6-deploy along with the Qt Python modules. You should be able to simply run it from the terminal.
          You should be able to find it in <your_venv_path>/bin/pyside6-deploy incase you are your virtualenv. Otherwise in your corresponding Python's bin folder.

          pyside6-deploy is a wrapper around a script called deploy.py, which you can find in <your_venv_path>/ib/python<version>/site-packages/PySide6/scripts/deploy.py

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jaydub
            wrote on last edited by
            #5

            Thank you all for your feedback. Very helpful.

            Turns out that I was using python v3.9, so when I would do the 'pip install PySide6', pip was installing PySide 6.2.x.

            I updated Python to v3.11, now PySide6 6.5.x gets installed and pyside6-deploy (and the various other tools) are properly in place.

            Thank you!

            J 1 Reply Last reply
            2
            • J jaydub has marked this topic as solved on
            • J jaydub

              Thank you all for your feedback. Very helpful.

              Turns out that I was using python v3.9, so when I would do the 'pip install PySide6', pip was installing PySide 6.2.x.

              I updated Python to v3.11, now PySide6 6.5.x gets installed and pyside6-deploy (and the various other tools) are properly in place.

              Thank you!

              J Offline
              J Offline
              jaydub
              wrote on last edited by
              #6

              @jaydub UPDATE: I installed Python 3.11 and when I run pyside6-deploy, nuitka warns that using python 3.11 is experimental, consider using 3.10. Needless to say, I got an error when I tried to build the deployable under python 3.11. So, I uninstalled Python 3.11.

              Installed 3.10 instead. Unfortunately, when I run pyside6-deploy on my project, still fails to build (separate issue), but does not complain about Python 3.11.

              JonBJ 1 Reply Last reply
              0
              • J jaydub

                @jaydub UPDATE: I installed Python 3.11 and when I run pyside6-deploy, nuitka warns that using python 3.11 is experimental, consider using 3.10. Needless to say, I got an error when I tried to build the deployable under python 3.11. So, I uninstalled Python 3.11.

                Installed 3.10 instead. Unfortunately, when I run pyside6-deploy on my project, still fails to build (separate issue), but does not complain about Python 3.11.

                JonBJ Offline
                JonBJ Offline
                JonB
                wrote on last edited by
                #7

                @jaydub I have answered on your separate issue.

                1 Reply Last reply
                0
                • W Offline
                  W Offline
                  wenqin
                  wrote on last edited by
                  #8

                  I want to know, after installing PySide6 using conda command, why is there no PySide6-deploy?

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    Hi and welcome to devnet

                    That's a question you should bring the maintainers of the conda PySide6 recipe.

                    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

                    • Login

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