Chapter 1 driver setup, cant install Flask Ubuntu 18.04

Following the mac instruction on ubuntu 18.04

I thought I did everything right up until the last step:

To start MFlix, run the following command:


Received the error:

(mflix) mongo@mongo-VirtualBox:~/M220P$ python
Traceback (most recent call last):
File “”, line 1, in
from mflix.factory import create_app
File “/home/mongo/M220P/mflix/”, line 6, in
from flask_bcrypt import Bcrypt
ModuleNotFoundError: No module named ‘flask_bcrypt’

I noticed this error when i try to install flask_bcrypt with $ pip install flask-bcrypt, i recieve this error:

Installing collected packages: bcrypt, flask-bcrypt
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: ‘/home/mongo/anaconda3/lib/python3.7/site-packages/bcrypt-3.1.6.dist-info’
Consider using the --user option or check the permissions.

and when i echo $PATH I receive this:


Please help.

Hi Lucas,

This looks like a missing library for your Python installation. Can you ensure that you have completed all the steps in “Chapter 1: Driver Setup - README”, particularly the section “Python Library Dependencies” as this should install the library (‘flask_bcrypt’) plus others you will need for the labs for this course.

Hope this helps,

1 Like