这是我的setup.py:
from distutils.core import setup
import py2exe
setup(name='a program',
version='0.9.1',
description='does things',
author='a person',
author_email='an email',
license='no license',
data_files=[('images', 'image1.png'),
('images', 'image2.png')],
packages=['my_python_package'],
options={'py2exe':{'includes': ['PyQt4.QtGui', 'PyQt4.QtCore'],
'bundle_files':1}})
然而,每当我从控制台运行python setup.py py2exe
时,我都会得到以下输出:
running py2exe
running build_py
1 missing Modules
------------------
? readline imported from cmd, code, pdb
Building shared code archive 'dist\library.zip'.
Copy DLL C:\Python34\lib\site-packages\PyQt4\QtCore4.dll to dist
Copy DLL C:\Python34\lib\site-packages\PyQt4\QtGui4.dll to dist
error: [Errno 2] No such file or directory: 'O'
我不知道被引用的这个'O'
是什么。我可能做错了什么,我该如何检查呢?