如何使python脚本在py2exe中可执行?

如何使python脚本在py2exe中可执行?,python,py2exe,Python,Py2exe,我下载了py2exe for python 2.6。我包括以下代码: from distutils.core import setup import py2exe setup(console=['move2.py']) “move2.py”是我的第一个脚本。这段代码来自视频中提到的我的第二个脚本。我打开cmd并键入“movesetup.py py2exe”,然后按enter键。相反,它出现了一条错误消息: Traceback (most recent call last): File "

我下载了py2exe for python 2.6。我包括以下代码:

from distutils.core import setup
import py2exe

setup(console=['move2.py'])
“move2.py”是我的第一个脚本。这段代码来自视频中提到的我的第二个脚本。我打开cmd并键入“movesetup.py py2exe”,然后按enter键。相反,它出现了一条错误消息:

Traceback (most recent call last):
  File "C:\Users\User\Desktop\move.py", line 1, in (module)
    from distutlis.core import setup
ImportError: No module named distutlis.core

我正确下载了py2exe,并且为Python2.6下载了正确的一个。这是我发现如何将.py更改为.exe的网站。他说得对吗?我也试过冷冻,但也没用

您有一个输入错误:
distutlis

更改为
distutils
,并在下次读取错误信息