I wanted to use winreg module of python for working with windows registry.
But when I try to import winreg module, it gives ImportError.
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
Do I need to install this module separately ?
Any suggestions would be useful.
It can’t work on Linux.
source: http://docs.python.org/release/2.1.2/lib/module–winreg.html