在Windows XP上安装pywin32-216时出现安装后错误

时间:2011-07-07 13:09:10

标签: python windows installation pywin32

我正在使用pywin32-216.win32-py2.6.exe包在Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)] on win32上安装pywin32。我看到以下帖子安装错误。有人能帮我理解出了什么问题吗?提前谢谢。

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.

3 个答案:

答案 0 :(得分:2)

最有可能pywin32需要管理员权限才能成功安装。我不知道如何在WinXP上做到这一点,但微软有一个page关于它。

答案 1 :(得分:1)

我设法通过最终从我的系统清除所有Python 2.6的痕迹并重新安装它+ pywin32来解决问题。最终只需双击安装文件就可以了。

答案 2 :(得分:0)

googlers的另一个答案:

我有同样的问题,原来它是因为我过去安装了python,将其删除并重新安装到另一个位置。 为了解决这个问题,我不得不:

  1. 删除旧安装(从注册表中手动卸载+) - 正如丹麦语建议的那样(主要根目录和 Wow6432Node )。
  2. 在注册表中更新python文件夹路径的当前位置的位置(在 InstallPath PythonPath 中)。