Questions
user482user482asked 4 months ago
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?  
1

1 Answers

Accepted
codegenlabcodegenlabanswered 4 months ago
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,
cd/python36/Scripts
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
2