Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImportError: No module named 'sha'

all, I tried to import sha in a python file, but got the error message when compiling the file.

ImportError: No module named 'sha'

I am using pycharm 4.0.4 with python 3.4.2 installed on Win 7. I am wondering how to solve the problem.

like image 846
daiyue Avatar asked Mar 18 '23 01:03

daiyue


1 Answers

Please use hashlib, in any case. sha has long been deprecated.

like image 77
ron rothman Avatar answered Mar 26 '23 08:03

ron rothman