1

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'
wishmaster
  • 1,437
  • 1
  • 10
  • 19

2 Answers2

1

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

AKX
  • 152,115
  • 15
  • 115
  • 172
Stubbs
  • 193
  • 1
  • 7
-1

I uninstalled crypto and installed it again and it fixed my problem.

pip uninstall crypto
pip install crypto
S.B
  • 13,077
  • 10
  • 22
  • 49
CSS
  • 3
  • 5