How do I solve: No module named ‘PySide2’
When I run main python scripts file, I got this error. how do I solve this? . Error show like this,
Traceback (most recent call last): File "G:pythonPython_PySide2-mastermain.py", line 11, in from PySide2 import QtCore, QtGui, QtWidgets ModuleNotFoundError: No module named 'PySide2'
How to solve this issue?
To fix this you have to install the PySide2 module, follow these steps to install PySide2,
- First open **cmd **and go to the python scripts folder.,
- This is my scripts file location “C:\python36\Scripts”, to open this path I use the below command,
then type this command to install Pyside2,
pip install PySide2
Or you can use this command directly open cmd and type this command,
python -m pip install PySide2