6

我正在尝试exe file从 python 文件创建一个可以在其他 PC 上执行的文件。我遇到了 Nuitka。我在 Windows 8.1 64 位上使用 Python 2.7.11 Anaconda 2.3.0(32 位)。由于我的工作规范,我无法更新我的 Python 版本!!!我已经为 python 2.7 下载了 nuitka 0.5.19。起初我使用了简单的行nuitka --exe python.py,我得到了一个可执行文件(带有一些警告),它只在安装了 Python 的 PC 上运行(很明显!)。然后我用来nuitka --standalone python.py包含库,我得到了一个主要的警告列表和一个内存错误的最终标志。听到警告:

C:\exefile>nuitka --standalone hybrid_SSP2exe.py
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\matplotlib\pyplot.py:82: Cannot find 'wx' in package 'matplotlib' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\matplotlib\pyplot.py:91: Cannot find 'PyQt5.QtWidgets' in package 'matplotlib' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\matplotlib\pyplot.py:98: Cannot find 'gi.repository' in package 'matplotlib' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\matplotlib\pyplot.py:101: Cannot find 'gobject' in package 'matplotlib' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\matplotlib\hatch.py:9: Cannot find 'matplotlib.externals.six.moves' in package 'matplotlib' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\numpy\fft\__init__.py:7: Cannot find 'mklfft.fftpack' in package 'numpy.fft' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\nose\suite.py:22: Cannot find 'clr' in package 'nose' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\nose\suite.py:24: Cannot find 'IronPython.Runtime.Exceptions' in package 'nose' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\nose\plugins\skip.py:22: Cannot find 'unittest2.case' in package 'nose.plugins' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\nose\plugins\manager.py:378: Cannot find 'pkg_resources' in package 'nose.plugins' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\IPython\kernel\zmq\eventloops.py:93: Cannot find 'wx' in package 'IPython.kernel.zmq' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\PIL\GifImagePlugin.py:250: Cannot find '_imaging_gif' in package 'PIL' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\cffi\ffiplatform.py:22: Cannot find 'setuptools' in package 'cffi' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\cffi\recompiler.py:1229: Cannot find 'testing.udir' in package 'cffi' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\IPython\kernel\zmq\gui\gtk3embed.py:17: Cannot find 'gi.repository' in package 'IPython.kernel.zmq.gui' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\IPython\kernel\zmq\gui\gtkembed.py:17: Cannot find 'gobject' in package 'IPython.kernel.zmq.gui' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\IPython\kernel\zmq\gui\gtkembed.py:18: Cannot find 'gtk' in package 'IPython.kernel.zmq.gui' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\IPython\lib\guisupport.py:77: Cannot find 'wx' in package 'IPython.lib' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\IPython\external\appnope\__init__.py:3: Cannot find 'appnope' in package 'IPython.external.appnope' as relative or absolute import.
Nuitka:WARNING:Use --plugin-enable=qt-plugins for: Inclusion of Qt plugins.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\IPython\external\qt_loaders.py:208: Cannot find 'PyQt5' in package 'IPython.external' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\IPython\external\qt_loaders.py:229: Cannot find 'PySide' in package 'IPython.external' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\path.py:122: Cannot find 'pkg_resources' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\zmq\ssh\tunnel.py:35: Cannot find 'pexpect' in package 'zmq.ssh' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\zmq\ssh\forward.py:33: Cannot find 'socketserver' in package 'zmq.ssh' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\ecdsa\numbertheory.py:15: Cannot find 'six.moves' in package 'ecdsa' 1 package level up.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\paramiko\ssh_gss.py:68: Cannot find 'gssapi' in package 'paramiko' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\IPython\utils\localinterfaces.py:144: Cannot find 'netifaces' in package 'IPython.utils' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\pytz\__init__.py:29: Cannot find 'pkg_resources' in package 'pytz' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\dateutil\tzwin.py:5: Cannot find 'six.moves' in package 'dateutil' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\matplotlib\finance.py:18: Cannot find 'matplotlib.externals.six.moves.urllib.request' in package 'matplotlib' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\IPython\utils\pickleutil.py:58: Cannot find 'dill' in package 'IPython.utils' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\IPython\utils\pickleutil.py:81: Cannot find 'cloud.serialization' in package 'IPython.utils' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\IPython\external\pexpect\__init__.py:2: Cannot find 'pexpect' in package 'IPython.external.pexpect' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\IPython\utils\_process_cli.py:15: Cannot find 'clr' in package 'IPython.utils' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\IPython\utils\_process_cli.py:16: Cannot find 'System' in package 'IPython.utils' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\IPython\core\debugger.py:46: Cannot find 'pydb' in package 'IPython.core' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\IPython\core\debugger.py:229: Cannot find 'pydb.fns' in package 'IPython.core' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\IPython\lib\inputhook.py:406: Cannot find 'gtk' in package 'IPython.lib' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\IPython\lib\inputhook.py:471: Cannot find 'OpenGL.GLUT' in package 'IPython.lib' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\IPython\lib\inputhook.py:504: Cannot find 'glut_support' in package 'IPython.lib' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\IPython\lib\inputhookgtk3.py:20: Cannot find 'gi.repository' in package 'IPython.lib' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\IPython\lib\inputhookpyglet.py:27: Cannot find 'pyglet' in package 'IPython.lib' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\IPython\lib\inputhookglut.py:38: Cannot find 'OpenGL.platform' in package 'IPython.lib' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\IPython\lib\inputhookgtk.py:20: Cannot find 'gobject' in package 'IPython.lib' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\pyreadline\keysyms\common.py:127: Cannot find 'startup' in package 'pyreadline.keysyms' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\pyreadline\keysyms\ironpython_keysyms.py:10: Cannot find 'System' in package 'pyreadline.keysyms' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\pyreadline\clipboard\ironpython_clipboard.py:9: Cannot find 'clr' in package 'pyreadline.clipboard' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\pyreadline\clipboard\ironpython_clipboard.py:11: Cannot find 'System.Windows.Forms.Clipboard' in package 'pyreadline.clipboard' as absolute
import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\pyreadline\console\ansi.py:177: Cannot find 'console' in package 'pyreadline.console' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\pyreadline\console\ironpython_console.py:29: Cannot find 'clr' in package 'pyreadline.console' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\pyreadline\console\ironpython_console.py:31: Cannot find 'IronPythonConsole' in package 'pyreadline.console' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\pyreadline\console\ironpython_console.py:37: Cannot find 'System' in package 'pyreadline.console' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\pyreadline\rlmain.py:31: Cannot find 'System' in package 'pyreadline' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\requests\packages\__init__.py:29: Cannot find 'urllib3' in package 'requests.packages' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\requests\packages\__init__.py:35: Cannot find 'chardet' in package 'requests.packages' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\requests\packages\urllib3\util\response.py:2: Cannot find 'packages.six.moves' in package 'requests.packages.urllib3' 2 package levels up.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\requests\packages\urllib3\response.py:13: Cannot find 'packages.six.moves' in package 'requests.packages.urllib3' 1 package level up.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\requests\compat.py:54: Cannot find 'http.cookies' in package 'requests' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\simplejson\__init__.py:125: Cannot find '_speedups' in package 'simplejson' 1 package level up.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\simplejson\scanner.py:6: Cannot find 'simplejson._speedups' in package 'simplejson' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\requests\packages\urllib3\contrib\pyopenssl.py:49: Cannot find 'ndg.httpsclient.ssl_peer_verification' in package 'requests.packages.urllib3
.contrib' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\requests\packages\urllib3\contrib\pyopenssl.py:50: Cannot find 'ndg.httpsclient.subj_alt_name' in package 'requests.packages.urllib3.contrib
' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\jsonschema\_format.py:161: Cannot find 'rfc3987' in package 'jsonschema' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\jsonschema\_format.py:173: Cannot find 'strict_rfc3339' in package 'jsonschema' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\jsonschema\_format.py:176: Cannot find 'isodate' in package 'jsonschema' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\jsonschema\_format.py:215: Cannot find 'webcolors' in package 'jsonschema' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\zmq\eventloop\minitornado\platform\auto.py:39: Cannot find 'monotime' in package 'zmq.eventloop.minitornado.platform' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\tornado\platform\auto.py:44: Cannot find 'monotime' in package 'tornado.platform' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\tornado\concurrent.py:37: Cannot find 'concurrent' in package 'tornado' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\zmq\sugar\context.py:84: Cannot find 'pyczmq' in package 'zmq.sugar' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\IPython\core\history.py:24: Cannot find 'pysqlite2' in package 'IPython.core' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\IPython\external\simplegeneric\__init__.py:2: Cannot find 'simplegeneric' in package 'IPython.external.simplegeneric' as relative or absolut
e import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\IPython\testing\iptestcontroller.py:639: Cannot find 'coverage' in package 'IPython.testing' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\IPython\testing\iptestcontroller.py:652: Cannot find 'coverage.html' in package 'IPython.testing' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\IPython\core\interactiveshell.py:1016: Cannot find 'pydb' in package 'IPython.core' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\matplotlib\textpath.py:22: Cannot find 'matplotlib.externals.six.moves.urllib.parse' in package 'matplotlib' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\matplotlib\mlab.py:3418: Cannot find 'mpl_toolkits.natgrid' in package 'matplotlib' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\matplotlib\tri\triinterpolate.py:8: Cannot find 'matplotlib.externals.six.moves' in package 'matplotlib.tri' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\matplotlib\axes\_axes.py:5: Cannot find 'matplotlib.externals.six.moves' in package 'matplotlib.axes' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\matplotlib\backends\backend_svg.py:5: Cannot find 'matplotlib.externals.six.moves' in package 'matplotlib.backends' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\tornado\netutil.py:423: Cannot find 'concurrent.futures' in package 'tornado' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\tornado\gen.py:96: Cannot find 'singledispatch' in package 'tornado' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\tornado\httputil.py:41: Cannot find 'http.cookies' in package 'tornado' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\cycler.py:6: Cannot find 'six.moves' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\scipy\misc\pilutil.py:21: Cannot find 'Image' in package 'scipy.misc' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\scipy\misc\pilutil.py:22: Cannot find 'ImageFilter' in package 'scipy.misc' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\scipy\sparse\linalg\dsolve\linsolve.py:14: Cannot find 'scikits.umfpack' in package 'scipy.sparse.linalg.dsolve' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\numpy\distutils\npy_pkg_config.py:10: Cannot find 'configparser' in package 'numpy.distutils' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\numpy\distutils\system_info.py:2000: Cannot find 'Numeric' in package 'numpy.distutils' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\numpy\distutils\system_info.py:2005: Cannot find 'numarray' in package 'numpy.distutils' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\numpy\f2py\diagnose.py:51: Cannot find 'numpy_distutils' in package 'numpy.f2py' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\numpy\f2py\diagnose.py:91: Cannot find 'numpy_distutils.command.build_flib' in package 'numpy.f2py' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\numpy\f2py\diagnose.py:113: Cannot find 'numpy_distutils.fcompiler' in package 'numpy.f2py' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\numpy\f2py\diagnose.py:136: Cannot find 'numpy_distutils.command.cpuinfo' in package 'numpy.f2py' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\numpy\f2py\diagnose.py:142: Cannot find 'numpy_distutils.cpuinfo' in package 'numpy.f2py' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\numpy\distutils\command\build_src.py:18: Cannot find 'Pyrex.Compiler.Main' in package 'numpy.distutils.command' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\numpy\f2py\__version__.py:6: Cannot find '__svn_version__' in package 'numpy.f2py' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\numpy\distutils\core.py:8: Cannot find 'setuptools' in package 'numpy.distutils' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\numpy\distutils\core.py:10: Cannot find 'setuptools.command' in package 'numpy.distutils' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\numpy\distutils\command\egg_info.py:3: Cannot find 'setuptools.command.egg_info' in package 'numpy.distutils.command' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\numpy\distutils\command\develop.py:8: Cannot find 'setuptools.command.develop' in package 'numpy.distutils.command' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\numpy\distutils\command\bdist_rpm.py:6: Cannot find 'setuptools.command.bdist_rpm' in package 'numpy.distutils.command' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\numpy\distutils\command\install.py:5: Cannot find 'setuptools.command.install' in package 'numpy.distutils.command' as absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\numpy\distutils\command\sdist.py:5: Cannot find 'setuptools.command.sdist' in package 'numpy.distutils.command' as absolute import.
Nuitka:WARNING:Use --plugin-enable=pylint-warnings for: Understand PyLint/PyDev annotations for warnings.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\pandas\util\testing.py:268: Cannot find 'py.path' in package 'pandas.util' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\pandas\util\testing.py:506: Cannot find 'pudb' in package 'pandas.util' as relative or absolute import.
Nuitka:WARNING:C:\Users\ennoisis\Anaconda\lib\site-packages\numexpr\tests\test_numexpr.py:863: Cannot find 'pkg_resources' in package 'numexpr.tests' as absolute import.
Problem with statement at C:\Users\ennoisis\Anaconda\lib\site-packages\pandas\core\index.py:361:
Problem with statement at C:\Users\ennoisis\Anaconda\lib\site-packages\pandas\core\index.py:361:
Problem with statement at C:\Users\ennoisis\Anaconda\lib\site-packages\pandas\core\index.py:359:
Problem with statement at C:\Users\ennoisis\Anaconda\lib\site-packages\pandas\core\index.py:359:
Problem with statement at C:\Users\ennoisis\Anaconda\lib\site-packages\pandas\core\index.py:68:
Problem with statement at C:\Users\ennoisis\Anaconda\lib\site-packages\pandas\core\index.py:68:
Problem with statement at C:\Users\ennoisis\Anaconda\lib\site-packages\pandas\core\index.py:68:
Traceback (most recent call last):
  File "C:\Users\ennoisis\Anaconda\Scripts\nuitka", line 193, in <module>
    MainControl.main()
  File "C:\Users\ennoisis\Anaconda\lib\site-packages\nuitka\MainControl.py", line 695, in main
    filename = filename
  File "C:\Users\ennoisis\Anaconda\lib\site-packages\nuitka\MainControl.py", line 100, in createNodeTree
    Optimization.optimize()
  File "C:\Users\ennoisis\Anaconda\lib\site-packages\nuitka\optimizations\Optimization.py", line 320, in optimize
    changed = optimizePythonModule(current_module)
  File "C:\Users\ennoisis\Anaconda\lib\site-packages\nuitka\optimizations\Optimization.py", line 99, in optimizePythonModule
    info("Interrupted while working on '%s'." % module)
  File "C:\Users\ennoisis\Anaconda\lib\logging\__init__.py", line 1621, in info
    root.info(msg, *args, **kwargs)
  File "C:\Users\ennoisis\Anaconda\lib\logging\__init__.py", line 1159, in info
    self._log(INFO, msg, args, **kwargs)
  File "C:\Users\ennoisis\Anaconda\lib\logging\__init__.py", line 1277, in _log
    record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
  File "C:\Users\ennoisis\Anaconda\lib\logging\__init__.py", line 1251, in makeRecord
    rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
  File "C:\Users\ennoisis\Anaconda\lib\logging\__init__.py", line 269, in __init__
    self.pathname = pathname
MemoryError

我对 Nuitka 提出了要求,但我发现我没有 MinGW。由于 minwg 安装程序有一个错误,我已经通过 SourceForge 付出了很多努力来安装。我得到了 mingw32 版本(与我的 python 版本匹配)。我安装后的 gcc 版本是:

C:\exefile>gcc --version
gcc (i686-posix-dwarf-rev0, Built by MinGW-W64 project) 5.3.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

之后我又试了一次nuitka --exe python.py,我也不工作。我是 python 的新手,但我学得很快,而且我不懂 C++。仅作记录,python 文件返回数字和数字。任何人都可以帮助我并指导我。提前致谢!!!

亲切的问候,萨纳西斯

4

0 回答 0