Cant run pytest -m connection Error ModuleNotFoundError

I can´t get Test code because I have installed the modules with pip command but when I run pytest-m connection command I get the error

tests\conftest.py:2: in
from mflix.factory import create_app
mflix\factory.py:6: in
from flask_bcrypt import Bcrypt
E ModuleNotFoundError: No module named ‘flask_bcrypt’t’

Hi @Veronica_50710, welcome to our new forums!

Can you run the command pip install -r requirements.txt and share the output from this command? This will help us understand why it didn’t install that module. The quick fix is to directly install the module directly via pip.

Kindest regards,
Eoin

1 Like

From your prompt it looks like you have not activated your virtual env.

1 Like

Hi @Veronica_50710

Has installing the modules and running your virtual environment resolved this issue for you?

Kindest regards,
Eoin