2011-07-07 146 views
0

我正在使用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。我看到以下安装后错误。有人能帮我理解错在哪里吗?提前致谢。在Windows XP上安装pywin32-216时发生安装后错误

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

我设法解决这个问题,最终从我的系统中清除了Python 2.6的所有痕迹,并重新安装了它+ pywin32。它最终就像双击安装文件一样简单。

+0

你能否给我们提供链接? – Radu

+0

@Radu哪个链接要我提供?链接到解决方案或链接到安装文件?没有链接到解决方案,我自己想出来。链接到设置文件可以很容易地使用谷歌 – Danish

+0

我完全不同意,安装文件不容易找到。我发现他们 - 但不容易。 – Radu

2

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

+0

谢谢,试用 – Danish

+0

我的用户是管理员组的一部分,应该不够,或者我需要将其作为实际的'管理员'用户运行。 – Danish

+0

这是不够的,你需要明确地运行它作为管理员。 – shanyu

0

为Google员工的另一种答案:

我有同样的问题,事实证明它起源,因为我已经在过去的Python安装,删除,并重新安装它到另一个位置。 为了解决这个问题,我不得不:

  1. 删除旧的安装(手动从注册表卸载+) - 作为丹麦的建议(无论是在主根和Wow6432Node)。
  2. 在注册表中更新python文件夹路径的当前位置的位置(位于InstallPathPythonPath)。