title: .exe file gives error when I try to run it
body: <p>I have a python-flask hangman game, that I tried to wrap into a single executable file using pyinstaller with the following command line:</p>
  <p><code>pyinstaller -w -F --add-data &quot;templates:templates&quot; --add-data &quot;static:static&quot; hangman.py</code></p>
  <p>It seemed to work fine, and created build, dist, as well as the .spec file However, when I try to run the executable, I get the following error:</p>
  <pre><code>flask_sqlalchemy/__init__.py:800: UserWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future.  Set it to True to suppress this warning.
   * Serving Flask app &quot;hangman&quot; (lazy loading)
   * Environment: production
     WARNING: This is a development server. Do not use it in a production deployment.
     Use a production WSGI server instead.
   * Debug mode: off
  Traceback (most recent call last):
    File &quot;hangman.py&quot;, line 101, in &lt;module&gt;
    File &quot;flask/app.py&quot;, line 990, in run
    File &quot;werkzeug/serving.py&quot;, line 1012, in run_simple
    File &quot;werkzeug/serving.py&quot;, line 956, in inner
    File &quot;werkzeug/serving.py&quot;, line 807, in make_server
    File &quot;werkzeug/serving.py&quot;, line 701, in __init__
    File &quot;socketserver.py&quot;, line 452, in __init__
    File &quot;http/server.py&quot;, line 138, in server_bind
    File &quot;socketserver.py&quot;, line 466, in server_bind
  OSError: [Errno 98] Address already in use
  [46425] Failed to execute script 'hangman' due to unhandled exception!
  </code></pre>
  <p>I am relatively new to programming, so please don't mind any wrong use of technical terms.</p>