'python.exe: No module named pyuic5

I want to convert my .ui file to py but pyuic5 is not recognized

enter image description here

And when i go to my python directory this error message appears

enter image description here

how to fix this error?



Solution 1:[1]

A more generic option is:

python -m PyQt5.uic.pyuic filename.ui -o filename.py -x

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 eyllanesc