py2exe를 사용하여 python 스크립트를 Windows 실행 파일로 만들려고합니다. 필자는 MSVCP90.dll과 Feiwings.py (변환을 위해 사용하는 파일) 및 setup.py가 같은 경로에 있음을 놓치지 않았습니다. 명령 창에서 그 일을, 모든 것이 잘 작동, 여기에 역 추적의 마지막 줄은 다음과 같습니다Py2exe는 python 스크립트를 Windows 실행 파일로 변환 할 수 없습니다.
**binary dependencies****
your executable(s) also depend on these dlls which are not included. You may or may not need to distribute them.
Make sure you have the license if you distribute any of them, and make sure you don't distribute files belonging to the operating system.
USER32.dll -C:\WINDOWS\system32\USER32.dll
SHELL32.dll -C:\WINDOWS\system32\SHELL32.dll
ADVAPI32.dll -C:\WINDOWS\system32\ADVAPI32.dll
WS2_32.dll -C:\WINDOWS\system32\WS2_32.dll
GDI32.dll -C:\WINDOWS\system32\GDI32.dll
KERNEL32.dll -C:\WINDOWS\system32\KERNEL32.dll
setup.py이 같은 내용이 있습니다
from distutils.core import setup
import py2exe
setup(console=['D:\python\Feiwings.py'])
때 내가 CD 경로에 dist 디렉토리에 오류가 있습니다.
Traceback (most recent call last):
File "Feiwings.py", line 2, in <module>
File "PySide\__init__.pyc", line 45, in <module>
File "PySide\__init__.pyc", line 43, in _setupQtDirectories
UnboundLocalError: local variable 'path' referenced before assignment
미리 감사드립니다.