0

In my command shell (cmd) I try to convert an .ui file to a .py file via

pyuic4 C:\Test\gui.ui > C:\Test\gui.py

But it says:

The command C:\Python27\python is either typed wrong or could not been found

I am using the Anaconda distribution which is placed under AppData/Local/Continuum/Anaconda and there is a python.exe.

Changing the directory does not work. How can I compile my .ui-file?

user2366975
  • 4,350
  • 9
  • 47
  • 87
  • you can open the python file in the specified directory by giving the complete path name – user2963623 Jun 30 '14 at 10:40
  • take a look at [this](http://stackoverflow.com/questions/16727171/installing-anaconda-into-a-virtual-environment?rq=1) – user2963623 Jun 30 '14 at 10:43
  • You mean like `C:\Users\name\AppData\Local\Continuum\Anaconda\python.exe pyuic4 C:\Test\gui.ui > C:\Test\gui.py`? This says it does not know `pyuic4` – user2366975 Jun 30 '14 at 10:44

1 Answers1

0

Use OSGeo4W shell instead of cmd, it can easily convert the .ui file to .py

Run the following command in OSGeo4W shell:

C:\path\to\my\ui\files\>pyuic4 -o ui_form.py form.ui

Hope this helps!

shahryar
  • 121
  • 5