我想用py文件替换ui文件。
C:\Python35\Lib\site-packages\PyQt5>python -m PyQt5.uic.pyuic -x test.ui -o test.py
C:\Users\sungj\AppData\Local\Programs\Python\Python36-32\python.exe: Error while finding module specification for 'PyQt5.uic.pyuic' (ModuleNotFoundError: No module named 'PyQt5')
答案 0 :(得分:0)
试一试:
C:\Python35\Scripts\pyuic5.exe -x test.ui -o test.py