Post-install errors while installing pywin32-216 on Windows XP

╄→гoц情女王★ 提交于 2019-12-08 09:54:37

问题


I'm using the pywin32-216.win32-py2.6.exe package to install pywin32 on Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)] on win32. I am seeing the following post install errors. Could someone help me understand what going wrong? Thanks in advance.

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
FAILED to register the Python COM objects
-> Software\Python\PythonCore\2.6\Help[None]=None
-> Software\Python\PythonCore\2.6\Help\Pythonwin Reference[None]='C:\\Python26\\Lib\\site-packages\\PyWin32.chm'
Failed to register pythonwin as editor
Shortcut for Pythonwin created
Shortcut to documentation created
The pywin32 extensions were successfully installed.
Traceback (most recent call last):
  File "<string>", line 372, in install
  File "<string>", line 170, in RegisterCOMObjects
ImportError: No module named server.register
Traceback (most recent call last):
  File "<string>", line 401, in install
  File "<string>", line 226, in RegisterPythonwin
  File "win32com\shell\shell.pyc", line 12, in <module>
  File "win32com\shell\shell.pyc", line 10, in __load
ImportError: DLL load failed: The specified module could not be found.

回答1:


Most probably pywin32 requires administrator privileges to be installed successfully. I am not sure how to do that on WinXP, but Microsoft has a page about it.




回答2:


I managed to fix the problem by eventually cleaning all traces of Python 2.6 from my system and re-installing it + pywin32. It was eventually as simple as just double clicking the setup files.




回答3:


Another answer for the googlers:

I has the same issue, it turns out it originated because I have installed python in the past, removed it and reinstalled it to another location. In order to solve it I had to:

  1. Remove old installations (Uninstall + manually from registry) - as Danish advised (both in main root and in Wow6432Node).
  2. In the registry update the location of current location of the python folder path (in InstallPath and PythonPath).


来源:https://stackoverflow.com/questions/6611102/post-install-errors-while-installing-pywin32-216-on-windows-xp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!