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. Problem with getting Pyside2 to work
Qt 6.11 is out! See what's new in the release blog

Problem with getting Pyside2 to work

Scheduled Pinned Locked Moved Unsolved Qt for Python
2 Posts 2 Posters 1.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.
  • A Offline
    A Offline
    AbelMena
    wrote on last edited by
    #1

    This is my first time programming with qt creator but am familiar with python. The problem I am running into is I have pyside2 download on my Mac but yet when I go to run code this pops up.

    20:05:59: Starting /usr/bin/python /Users/abelmena/Main/main.py...

    Traceback (most recent call last):
    File "/Users/abelmena/Main/main.py", line 3, in <module>
    from PySide2.QtWidgets import QApplication, QMainWindow
    ImportError: No module named PySide2.QtWidgets
    20:05:59: /usr/bin/python exited with code 1

    Therefore what is the issue and how do I resolve this? Thanks!

    jsulmJ 1 Reply Last reply
    0
    • A AbelMena

      This is my first time programming with qt creator but am familiar with python. The problem I am running into is I have pyside2 download on my Mac but yet when I go to run code this pops up.

      20:05:59: Starting /usr/bin/python /Users/abelmena/Main/main.py...

      Traceback (most recent call last):
      File "/Users/abelmena/Main/main.py", line 3, in <module>
      from PySide2.QtWidgets import QApplication, QMainWindow
      ImportError: No module named PySide2.QtWidgets
      20:05:59: /usr/bin/python exited with code 1

      Therefore what is the issue and how do I resolve this? Thanks!

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @AbelMena said in Problem with getting Pyside2 to work:

      I have pyside2 download on my Mac

      How exactly did you install PySide2? Do you have different Python installations? If so, is /usr/bin/python the one where you installed PySide2?

      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