2012-08-30 7 views
2

Portable Python과 Movable Python은 무언가를 풀어 anythin을 설치하지 않고 Python 프로그래밍을 허용합니다. :-)Portable Python과 Movable Python으로 pyInstaller를 설치하는 방법

내 스크립트에서 독립 실행 형 실행 파일을 만들 수도 있습니다. pyInstaller에 pyWin32가 필요하지만 pyWin32는 python 레지스트리 서명에 의존하기 때문에 이러한 패키지에 pyInstaller를 연결할 수 없습니다. 내가 파이썬의 휴대용 버전을 사용하고 있기 때문에 그들이 아닙니다! 해결 방법은 없습니까?

pywin32 실행 파일 (pywin32-217.win32-py2.7.exe)을 압축 해제하면 PLATLIB 및 SCRIPTS라는 두 개의 폴더가 생성됩니다. 이 폴더를 올바른 Python Portable 하위 폴더로 옮기는 것만으로도 충분할 수 있습니까?

내가 사용하고 있습니다 :

  • 윈도우 XP
  • PortablePython_2.7.3.1 (휴대용 파이썬)
  • movpy-2.0.0-py2.5.1 (이동식 파이썬)
  • pyinstaller-을 pyInstaller 중에-v2.0-107-gecb2882 (pyInstaller 중에)
  • pywin32-217.win32-py2.7 (PyWin32)

답변

3

수입 순서를 변경하면 문제가 해결 될 수 있습니다. pyinstaller site에서 :

In order to make pywin32 works with portable python pywintypes must be loaded before 
any win32 library ....... Swapping the two lines "import win32api" and "import 
pywintypes" in bindepend.py (line 44 and 45 on commit 0837e8a....) fixes the issue. 

내게도 동일한 문제가 수정되었습니다.