在Windows XP上安装pywin32-216时发生安装后错误
问题描述:
我正在使用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.
答
我设法解决这个问题,最终从我的系统中清除了Python 2.6的所有痕迹,并重新安装了它+ pywin32。它最终就像双击安装文件一样简单。
答
为Google员工的另一种答案:
我有同样的问题,事实证明它起源,因为我已经在过去的Python安装,删除,并重新安装它到另一个位置。 为了解决这个问题,我不得不:
- 删除旧的安装(手动从注册表卸载+) - 作为丹麦的建议(无论是在主根和Wow6432Node)。
- 在注册表中更新python文件夹路径的当前位置的位置(位于InstallPath和PythonPath)。
你能否给我们提供链接? – Radu
@Radu哪个链接要我提供?链接到解决方案或链接到安装文件?没有链接到解决方案,我自己想出来。链接到设置文件可以很容易地使用谷歌 – Danish
我完全不同意,安装文件不容易找到。我发现他们 - 但不容易。 – Radu