Theano generates and compiles C++ files on the fly, which will probably
make it harder to convert using py2exe.

One thing you can try to do is copy the compiled cache of such modules
to the other machine as well (execute "python Theano/bin/theano-cache"
to see where it is), and edit the .theanorc on that machine so that
"compiledir" points to that copied directory.
You may also need to edit the code of Theano to bypass detection of g++.

Another option would be to use a container like Docker, or a VM.

On Wed, Sep 07, 2016, Chong Ma wrote:
> 
> 
> Hi,
> 
>  
> 
> 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.
> 
>  
> 
> 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:
> 
>  
> 
> “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.”
> 
>  
> 
> My working environment is:
> 
> Win10 64bit + Anaconda2
> 
>  
> 
> Could anyone give me some advice to generate the exe file based on theano 
> python file?
> 
>  
> 
> Thank you a lot.
> 
>  
> 
> -- 
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "theano-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.


-- 
Pascal

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to