Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python A Social Network with Flask Making Strong Users Cryptographic Hashing with Flask-Bcrypt

When I try to run 'from flask_bcrypt import generate_password_hash,' this show 'from: can't read /var/mail/flask_bcrypt

from flask_bcrypt import generate_password_hash from: can't read /var/mail/flask_bcrypt

python3 Python 3.9.4 (v3.9.4:1f2e3088f3, Apr 4 2021, 12:32:44) [Clang 6.0 (clang-600.0.57)] on darwin Type "help", "copyright", "credits" or "license" for more information.

import generate_password_hashfrom flask_bcrypt import generate_password_hash File "<stdin>", line 1 import generate_password_hashfrom flask_bcrypt import generate_password_hash ^ SyntaxError: invalid syntax from flask.ext.bcrypt import generate_password_hash Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'flask.ext'