How to run python production on customer environment
<p>I have some python application that should run on customer site. I compile my <code>py</code> files to <code>pyc</code> (python byte code).</p>

<p>What is the standard way to run the app on the customer environment? The options I see are:</p>

<ul>
<li>As part of my installer, install some python distribution, i.e Anaconda.</li>
<li>Require the customer to have python installed in their environment.</li>
<li>Bring python libraries and executable along with my code and run it directly from my installation dir.</li>
<li>Convert the scripts to exe using some py-to-exe tool.</li>
</ul>

<p>Application usage: The app is used as a tool to calculate statistics for my main product. The customer won't run it explicitly. It won't have any GUI.</p>

<p>Customer environment will be x64 Windows machine. No other restrictions.</p>

<p>Any recommendations or comments? I couldn't find such discussions on the web.</p>

<p>Given your requirements, the last two options seem most viable:</p>

<blockquote>
  <ul>
  <li>Bring python libraries and executable along with my code and run it    directly from my installation dir.</li>
  <li>Convert the scripts to exe using some py-to-exe tool.</li>
  </ul>
</blockquote>

<p>You can either <a href="http://docs.python-guide.org/en/latest/shipping/packaging/" rel="nofollow">package</a> your code, or <a href="http://docs.python-guide.org/en/latest/shipping/freezing/#freezing-your-code-ref" rel="nofollow">freeze</a> your code and create an executable for the target OS.</p>

<p>Given your requirements, I'd suggest the latter. You can go through the <a href="https://packaging.python.org" rel="nofollow">Python Packaging Guide</a> for more details regarding packaging.</p>

python python-3.x production pyc python-install