Tôi gặp sự cố tương tự khi cài đặt theo Python 64 bit 3.4.2. Tôi chạy cài đặt thực thi pywin32‑219.win ‑ amd64 ‑ py3.4.exe từ http://www.lfd.uci.edu/~gohlke/pythonlibs/.
Trên trang web đó nêu rõ:
"Python 3.4 người dùng phải tự chạy python.exe Scripts\pywin32_postinstall.py -install
từ một dấu nhắc lệnh nâng lên."
mà tôi không làm lần đầu tiên; Tôi đã cài đặt từ lời nhắc thông thường nhận được phản hồi sau:
c:\python34>python.exe Scripts\pywin32_postinstall.py -install
Copied pythoncom34.dll to C:\Python34\pythoncom34.dll
Copied pywintypes34.dll to C:\Python34\pywintypes34.dll
You do not have the permissions to install COM objects.
The sample COM objects were not registered.
etc.etc.
Finishing with "The pywin32 extensions were succesfully installed" ...
Tôi chỉ đọc câu cuối cùng và tôi bắt đầu chạy một số mã dẫn đến tải các tệp này không thành công.
Vì vậy, đã làm một số nghiên cứu, và bắt đầu một nâng lên nhanh chóng (cách: xem "http://www.sevenforums.com/tutorials/783-elevated-command-prompt.html") và một lần nữa chạy:
c:\python34>python.exe Scripts\pywin32_postinstall.py -install
Copied pythoncom34.dll to C:\Windows\system32\pythoncom34.dll
Copied pywintypes34.dll to C:\Windows\system32\pywintypes34.dll
Registered: Python.Interpreter
Registered: Python.Dictionary
Registered: Python
-> Software\Python\PythonCore\3.4\Help[None]=None
-> Software\Python\PythonCore\3.4\Help\Pythonwin Reference[None]='C:\\Python34\\Lib\\site-packages\\PyWin32.chm'
Pythonwin has been registered in context menu
Shortcut for Pythonwin created
Shortcut to documentation created
The pywin32 extensions were successfully installed.
Và bây giờ mã của tôi chạy hạnh phúc (như xa như vấn đề này là có liên quan .. thở dài, rất nhiều thứ khác để làm).
Sau khi tôi di chuyển/sao chép pywintypes26.dll và pythoncom26.dll vào c: \ Python26 \ Lib \ site-packages \ win32 -> Giải quyết vấn đề! –
Nếu bạn đã giải quyết được sự cố, vui lòng đăng giải pháp làm câu trả lời. – agf
một năm kể từ khi bạn đăng câu trả lời này, cảm ơn bạn. nó làm việc cho tôi hôm nay – nish