How to compile and package a python file into an execution file under windows 64bit
<p>Recently, I started to use theano to do some basic BP network. The theano was installed and my network based on theano works well in my PC. 
In order to share my code among my colleagues, I am looking for a method to package the theano python file to one execution file which can be run under windows without python environment.</p>

<p>I am trying py2exe to finish the packaging work and I found that, the packaged exe can only work in my PC. When I copy the exe to other PCs without python, it does not work. Only warning message is giving as:</p>

<pre><code>âWARNING (theano.configdefaults): g++ not detected ! 

Theano will be unable to execute optimized C-implementations (for both CPU and GPU) and will default to Python implementations. Performance will be severely degraded. To remove this warning, set Theano flags cxx to an empty string.â
</code></pre>

<p>My <strong>working environment</strong> is:
<strong>Win10 64bit + Anaconda2</strong></p>

<p>Could anyone give me some advice to generate the exe file based on theano python file?</p>

<p>Thank you a lot.</p>

<p>I use <code>cxFreeze</code> to convert my Python scripts to <code>.exe</code> Its a really good module. You can see its working <a href="https://www.youtube.com/watch?v=HosXxXE24hA" rel="nofollow">here</a>. </p>

python package exe theano py2exe