Search code examples
pythonpython-3.xcrypt

crypt module not found (python3.7)


I'm using python 3.7,the crypt module that used to be built-in python 2.x, now i can't seem to find it. I tried https://docs.python.org/3/library/crypt.html but it's source code uses _crypt which also i can't download any help is appreciated.

import crypt

i get this error

    import _crypt
ModuleNotFoundError: No module named '_crypt'

Solution

  • If you are on Windows then it's because crypt is a Unix Specific Service.