title: Configuring Pycharm to run Pyinstaller
body: <p>Yes I want to create a run configuration in PyCharm to run Pyinstaller and get my executable. According to the <a href="https://pythonhosted.org/PyInstaller/#installed-commands" rel="noreferrer">Pyinstaller documentation</a> you should be able to locate an python script called <code>pyinstaller-folder/pyinstaller.py</code> after the installation, but it wasn't there. Then I look carefully and found this other one named <code>pyinstaller-folder/__main__.py</code> which should be the same &lt;--(me wild guessing), so I set up my running configuration like this:</p>
  
  <p><a href="https://i.stack.imgur.com/A2ULF.png" rel="noreferrer"><img src="https://i.stack.imgur.com/A2ULF.png" alt="enter image description here"></a></p>
  
  <p>After running it, is giving me this error:</p>
  
  <pre><code>/usr/local/Cellar/python3/3.4.3/bin/python3.4 /usr/local/lib/python3.4/sit
  
  e-packages/PyInstaller/__main__.py --onefile --nowindow --osx-bundle-identifier=jg.optimizer -F --name=genoptimizer optimizer/manage.py
  Traceback (most recent call last):
    File "/usr/local/lib/python3.4/site-packages/PyInstaller/__main__.py", line 26, in &lt;module&gt;
      from . import __version__
  SystemError: Parent module '' not loaded, cannot perform relative import
  
  Process finished with exit code 1
  </code></pre>
  
  <p>It seems to require a parent module to run but, how would that look like? </p>