0

I had python 3.8.5 installed on my machine, and I have pyuic5 installed and used it to convert .ui to .py files (using cmd). I recently upgraded to python 3.8.7, and whenever I try to convert now, I get this error:

C:\Users\....>pyuic5 -x Windows.ui -o Windows.py
Fatal error in launcher: Unable to create process using '"d:\program files\python3.8.5\python.exe"  "D:\Program Files\Python 3.8.7\Scripts\pyuic5.exe" -x Windows.ui -o Windows.py': The system cannot find the file specified.

I made sure that pyqt5 and pyuic5 have been installed correctly. I am no expert, but I believe that cmd is looking for the python.exe file from python3.8.5 folder (the older version I had installed) instead of the one in python3.8.7 folder.

azibom
  • 1,769
  • 1
  • 7
  • 21
Ahmed Zeid
  • 31
  • 5
  • use `pyuic5 -x /full/path/of/Windows.ui -o Windows.py` – eyllanesc Jan 27 '21 at 19:46
  • I tried it already, and it unfortunately didn't work. The command mentioned in the question always used to work, but not after the upgrade anyways. You might have other ideas perhaps? Why is my cmd trying to look in "d:\program files\python3.8.5\python.exe and not 3.8.7? – Ahmed Zeid Jan 27 '21 at 19:54
  • @AhmedZeid Check your PATH envvar. Make sure it includes \Lib\site-packages\PyQt5 (and also get rid of any old ones). – ekhumoro Jan 28 '21 at 02:57
  • @ekhumoro, I did that, still the same error. Thing is "d:\program files\python3.8.5\python.exe" doesn't even exist on my computer. How to change that path? – Ahmed Zeid Jan 28 '21 at 04:15

1 Answers1

0

UPDATE: I pip uninstalled/re-installed the following, and that solved my issue: PyQt5 PyQt5-tools PyQt5-sip PyQtWebEngine

Ahmed Zeid
  • 31
  • 5