如何使用可移植Python和可移动Python安装pyInstaller

如何使用可移植Python和可移动Python安装pyInstaller,python,portability,pyinstaller,movable,Python,Portability,Pyinstaller,Movable,Portable Python和Movable Python允许在不安装anythin的情况下编程Python,只需解包即可。:-) 我还希望能够从我的脚本中创建独立的可执行文件,但我不能将pyInstaller绑定到这些包,因为pyInstaller需要pyWin32,但pyWin32依赖于python注册表签名,我没有它们,因为我使用的是可移植的python版本! 有解决办法吗 通过解包pywin32可执行文件(pywin32-217.win32-py2.7.exe),我得到两个文件夹,PL

Portable Python和Movable Python允许在不安装anythin的情况下编程Python,只需解包即可。:-)

我还希望能够从我的脚本中创建独立的可执行文件,但我不能将pyInstaller绑定到这些包,因为pyInstaller需要pyWin32,但pyWin32依赖于python注册表签名,我没有它们,因为我使用的是可移植的python版本! 有解决办法吗

通过解包pywin32可执行文件(pywin32-217.win32-py2.7.exe),我得到两个文件夹,PLATLIB和脚本;也许仅仅将这些文件夹移动到正确的Python Portable子文件夹就足够了

我正在使用:

  • 视窗XP
  • 可移植Python_2.7.3.1(可移植Python)
  • movpy-2.0.0-py2.5.1(移动Python)
  • pyinstaller-pyinstaller-v2.0-107-gecb2882(pyinstaller)
  • pywin32-217.win32-py2.7(pywin32)

    • 显然,可以通过改变进口顺序来解决这个问题。从:

      它为我解决了同样的问题

      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.