title: How to install pyinstaller on ubuntu 13?
body: <p>I tried:(referred pyinstaller manual)</p>
  
  <pre><code>pip install PyInstaller
  </code></pre>
  
  <p>but it gave error:</p>
  
  <pre><code>creating /usr/local/lib/python2.7/dist-packages/PyInstaller
  
  error: could not create '/usr/local/lib/python2.7/dist-packages/PyInstaller': Permission denied
  
  ----------------------------------------
  
  Command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build-pratik/pyinstaller/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-wrGEjP-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip-build-pratik/pyinstaller
  
  Exception information:
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 139, in main
  status = self.run(options, args)
    File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 271, in run
  requirement_set.install(install_options, global_options, root=options.root_path)
    File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1185, in install
  requirement.install(install_options, global_options, *args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/pip/req.py", line 592, in install
  cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
    File "/usr/lib/python2.7/dist-packages/pip/util.py", line 662, in call_subprocess
  % (command_desc, proc.returncode, cwd))
  InstallationError: Command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build-pratik/pyinstaller/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-wrGEjP-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip-build-pratik/pyinstaller
  </code></pre>
  
  <p>I have taken this from pip.log</p>
  
  <p>How can I resolve this?</p>