dll load errors in python executable made from pywin32

后端 未结 2 774
时光说笑
时光说笑 2021-01-22 03:24

I created python executables with py2exe with both 64bit python interpreter and 32 bit python interpreter.

In my program, I use the module pywin32 com, and

相关标签:
2条回答
  • 2021-01-22 04:00

    Older than everything ever, but I stumbled on this problem today, and if anyone else does, what I ran was:

    python /c/Python26/Scripts/pywin32_postinstall.py -install from the commandline (change values to fit). That worked:

    $ python /c/Python26/Scripts/pywin32_postinstall.py -install
    Copied pythoncom26.dll to C:\WINDOWS\system32\pythoncom26.dll
    Copied pythoncomloader26.dll to C:\WINDOWS\system32\pythoncomloader26.dll
    Copied pywintypes26.dll to C:\WINDOWS\system32\pywintypes26.dll
    Registered: Python.Interpreter
    Registered: Python.Dictionary
    Registered: Python
    -> Software\Python\PythonCore\2.6\Help[None]=None
    -> Software\Python\PythonCore\2.6\Help\PythonwinReference[None]='c:\\Python26\\Lib\\site-packages\\PyWin32.chm'
    Pythonwin has been registered in context menu
    Creating directory c:\Python26\Lib\site-packages\win32com\gen_py
    Shortcut for Pythonwin created
    Shortcut to documentation created
    The pywin32 extensions were successfully installed.`
    

    (On WinXP SP3)

    0 讨论(0)
  • 2021-01-22 04:02

    Had the above noted errors with my python27 pywin32 installation that got installed after my installation of ArcGIS on a windows2008 R2 server (trying to centralize our scripts). Found that for me, I had to start a command line window with run as adminstrator (right click to get that option in windows) and then run the following command line from the c:\arcpy27\arcgis10.1>python c:/arcpy27/arcgis10.1/scripts/pywin32_postinstall.py -install

    I see a lot of people have run into this issue and I tried multiple things, but this was finally the solution that managed to get pywin32 installed.

    Thanks so much for your solution. Took me a couple of install and uninstalls before I finally ran across your solution and modified it for my version.

    0 讨论(0)
提交回复
热议问题