1$ source env/bin/activate
2(env) $ which python
3/Users/michaelherman/python-virtual-environments/env/bin/python
4
1$ pip -q install bcrypt
2$ python -c "import bcrypt; print(bcrypt.hashpw('password'.encode('utf-8'), bcrypt.gensalt()))"
3$2b$12$vWa/VSvxxyQ9d.WGgVTdrell515Ctux36LCga8nM5QTW0.4w8TXXi
4
1$ source env/bin/activate
2(env) $ python -c "import bcrypt; print(bcrypt.hashpw('password'.encode('utf-8'), bcrypt.gensalt()))"
3Traceback (most recent call last):
4 File "<string>", line 1, in <module>
5ImportError: No module named 'bcrypt'
6