最近,我开始用theano做一些基本的BP网络。theano已经安装,基于theano的网络在我的电脑中运行良好。 为了在同事之间共享我的代码,我正在寻找一种方法,将theano-python文件打包成一个执行文件,该文件可以在windows环境下运行,而不需要python环境。你知道吗
我正在尝试py2exe来完成打包工作,我发现打包的exe只能在我的电脑上工作。当我把exe复制到其他没有python的电脑上时,它就不能工作了。唯一的警告信息是:
“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.”
我的工作环境是: Win10 64位+Anaconda2
有谁能给我一些建议,让我在无python文件的基础上生成exe文件?你知道吗
非常感谢。你知道吗
我使用
cxFreeze
将Python脚本转换为.exe
这是一个非常好的模块。您可以看到它的工作here。你知道吗试试PyInstaller
PyInstaller是一个在Windows、Linux、macosx、FreeBSD、Solaris和AIX下将Python程序冻结(打包)成独立可执行文件的程序。你知道吗
相关问题 更多 >
编程相关推荐