我想使用winthon winreg模塊來處理windows註冊表。 但是,當我嘗試導入winreg模塊時,它會給出ImportError。導入Python的winreg模塊導入錯誤
Python 2.4.3 (#1, Dec 11 2006, 11:39:03)
[GCC 4.1.1 20061130 (Red Hat 4.1.1-43)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import __winreg
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: No module named __winreg
>>> import _winreg
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: No module named _winreg
是否需要單獨安裝此模塊? 任何建議都會有用。
檢查這些鏈接 - http://docs.python.org/library/_winreg.html ... http://stackoverflow.com/questions/4320761/importerror-no-模塊名爲winreg-python3 – avasal