title: Creating Executable File For Python 2.7
body: <p>I want to make an executable file from a python file the python file is written for Python 2.7.</p>
  <p>I tried <code>pyinstaller</code> but it gives me an error when installing. I'm guessing it does not have support for Python 2.7 anymore.</p>
  <p>Are there any alternatives for <code>pyinstaller</code> that work with Python 2.7?</p>
  <p>I tried installing <code>cx_Freeze</code> version 5.1.1 but it gives me the following error:</p>
  <pre><code>Cleaning up...
  Command C:\Python27\python.exe -c &quot;import setuptools, tokenize;__file__='c:\\users\\win-10\\appdata\\local\\temp\\pip_build_win-10\\cx-Freeze\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))&quot; install --record c:\users\win-10\appdata\local\temp\pip-cn4sd_-record\install-record.txt --single-version-externally-managed --compile failed with error code 1 in c:\users\win-10\appdata\local\temp\pip_build_win-10\cx-Freeze
  Storing debug log for failure in C:\Users\win-10\pip\pip.log
  </code></pre>
  <p>when I install from wheel</p>
  <pre><code>cx_Freeze-5.1.1-cp27-cp27m-win_amd64.whl is not a supported wheel on this platform.
  Storing debug log for failure in C:\Users\win-10\pip\pip.log
  </code></pre>
  <p><strong>setup.py</strong></p>
  <pre class="lang-py prettyprint-override"><code>from sys import executable
  from cx_Freeze import setup, Executable
  
  setup(name='server', version='0.1', description='reverse shell server')
  </code></pre>