ModuleNotFoundError: No module named 'midi'

The import section of my looks like this:

import pickle
import midi
import pandas as pd
import numpy as np
import os

I have a requirements.txt file which I had used to install required modules in the bash console. I had also tried solving the error by doing pip install git+ but I still have the same error message in the error log.

Would anyone be able to help with this?

Thank you.

Make sure that you installed the package for the same Python version / virtual environment that you use to run your web app with.