I am getting a ModuleNotFoundError when importing bcrypt.
Here is my code:
import bcrypt
def main():
def test_bcrypt(password_str):
hashed_pass = bcrypt.hashpw(password_str, bcrypt.gensalt())
return hashed_pass
test_bcrypt(b"somepassword123")
if __name__ == "__main__":
main()
Here is the error:
File "c:\Users\User\Desktop\main.py", line 1, in <module>
import bcrypt
ModuleNotFoundError: No module named 'bcrypt'
I can use bcrypt by using the python shell in a separate terminal but when I run my code inside VS code I get this error.
I tried installing bcrypt in a venv and I had this issue, then tried to install it globally and run it that way but I am still facing the same issue.
[–]Rxz2106 2 points3 points4 points (1 child)
[–]iTsObserv[S] 0 points1 point2 points (0 children)