Problem with getting Pyside2 to work



  • 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!


  • Qt Champions 2018

    @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?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.