1

I successfully installed Bcrypt but it still gives error (Seems like nothing happened):

from flask_bcrypt import Bcrypt

The issue:

Traceback (most recent call last):
  File "*path*", line 9, in <module>
from flask_bcrypt import Bcrypt
ModuleNotFoundError: No module named 'flask_bcrypt'
Tenserflu
  • 520
  • 5
  • 20

1 Answers1

2

From the image it looks like you're using Pycharm, Make sure you install flask_bcrypt specific to that virtual environment. Bring up the terminal and pip install flask-bcrypt

And Change the import statement to

from flask import Flask
from flask.ext.bcrypt import Bcrypt

-From the docs

Vineeth Sai
  • 3,389
  • 7
  • 23
  • 34