2016-01-11 38 views
1

我想冻结我Python PySide文件EXE,它工作得很好,当我与'bundle_files': 3这样做,但是当我尝试'bundle_files': 1 IM日志收到此错误做到这一点:如何使用py2exe到一个EXE文件的Python冻结文件PySide?

WindowsError: [Error 3] The system cannot find the path specified

这是我的setup.py:

from distutils.core import setup 
import py2exe, sys, os 

sys.argv.append('py2exe') 

setup(
    excludes=['_ssl', # Exclude _ssl 
            'pyreadline', 'difflib', 'doctest', 'locale', 
            'optparse', 'pickle', 'calendar'], # Exclude standard library 
    dll_excludes=['msvcr71.dll'], # Exclude msvcr71 
    compressed=True, # Compress library.zip 
    options = {'py2exe': {'bundle_files': 1, 'compressed': True}}, 
    windows = [{'script': "myFile.py", "icon_resources": [(1, "icon.ico")]}], 
    zipfile = None, 
) 

这是日志:

Traceback (most recent call last): 
File "MultiClipboard.py", line 4, in <module> 
File "zipextimporter.pyc", line 82, in load_module 
File "PySide\__init__.pyc", line 41, in <module> 
File "PySide\__init__.pyc", line 11, in _setupQtDirectories 
File "PySide\_utils.pyc", line 97, in get_pyside_dir 
File "PySide\_utils.pyc", line 88, in _get_win32_case_sensitive_name 
File "PySide\_utils.pyc", line 63, in _get_win32_short_name 
WindowsError: [Error 3] The system cannot find the path specified. 
+0

为什么这个问题有标签:pyinstaller? –

回答

1

Py2exe不支持64-bit machines此功能。如果您需要捆绑的所有项目合并成一个文件,你应该尝试使用pyinstaller代替

+0

它的工作原理!谢谢 :) –

相关问题