pythonpython-3.6winreg

Why do I get a ModuleNotFoundError for winreg on a Linux system?


'winreg' module is not found python 3.6.7. I am not facing this problem in Python 3.4.

Is any third-party app in 'winreg' that I can use same code or how can I solve this.

jaki@jaki-notebook:~$ python3 -V
Python 3.6.7
jaki@jaki-notebook:~$ python3
Python 3.6.7 (default, Oct 22 2018, 11:32:17) 
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from winreg import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'winreg'
>>> 

ModuleNotFoundError: No module named 'winreg'


Solution

  • It is not work on linux because this package expose functions of the Windows registry API to Python

    Read this documentation on python offical website