title: C:/Program is not recognized ...related to pyuic5
body: <p>I installed Anaconda3-4.2.0 on Windows 10 Pro. During the installation I selected Anaconda to set the Path variable. I created a small program using QT designer and saved it as hello.ui. I launched Windows command prompt and changed directory to where hello.ui is saved. I then typed the following at the prompt:</p>
  <blockquote>
  <p>C:\Users\HA\Documents\Python_Scripts\GUI_Scripts&gt; pyuic5 -x hello.ui -o hello.py</p>
  </blockquote>
  <p>It gave me the following error:</p>
  <blockquote>
  <p>'C:/Program' is not recognized as an internal or external command, operable program or batch file.</p>
  </blockquote>
  <p>How can I resolve this issue? My goal is to create a .py file from the .ui file. Is there an alternative that I can try?</p>
  <p>I have tried the following: I searched for this error on Google and on stackoverflow (<a href="https://stackoverflow.com/questions/17845809/c-program-is-not-recognized-error">&#39;C:\Program&#39; is not recognized error</a>) and the suggestion to include quotes around the path variable didn't work for me. There was another suggestion to re-install Visual C++ Redistributable for Visual Studio 2015 (not sure why this would help, but nonetheless, I tried that), and that didn't help either.</p>
  <p>Below is some pertinent information about my settings. Anaconda3, pyuic5.bat, and pyuic.py are installed in the following directories (respectively):</p>
  <blockquote>
  <p>C:\Program Files</p>
  <p>C:\Program Files\Anaconda3\Library\bin</p>
  <p>C:\Program Files\Anaconda3\Lib\site-packages\PyQt5\uic</p>
  </blockquote>
  <p>The Path variable under System Variables include the following items related to Anaconda3:</p>
  <blockquote>
  <p>C:\Program Files\Anaconda3;C:\Program Files\Anaconda3\Scripts;C:\Program Files\Anaconda3\Library\bin</p>
  </blockquote>
  <p>python.exe is installed in C:\Program Files\Anaconda3. However, I am able to run the following without any issues:</p>
  <blockquote>
  <p>C:\Users\HA\Documents\Python_Scripts\GUI_Scripts&gt; python</p>
  <p>'&gt;&gt;&gt;</p>
  </blockquote>
  <p>What else can I try? What other information should I include here to help with the answer?</p>
  <p>EDIT:</p>
  <p>I uninstalled Anaconda3 and re-installed it, but during the re-installation, I chose C:\Anaconda3 as the installation directory. After that I was able to run:</p>
  <blockquote>
  <p>pyuic5 -x hello.ui -o hello.py</p>
  </blockquote>
  <p>which successfully produced hello.py. This clearly shows the problem was the space in C:\Program Files. However, why is it that earlier I could run python.exe from the Windows command line in any directory, and the space in C:\Program Files was not an issue there? Why it only affected pyuic5? Hopefully someone could shed more light on this for anyone else who might face this problem. Most people who install Anaconda3 might choose the default installation directory which is under Program Files and they will face a similar problem. However, for someone who simply doesn't care which directory, I would recommend installing Anaconda3 in some sensible directory but making sure that there is no space in the path to that directory.</p>