In my new course draft I need to create coding exercise in python. This code needs external libraries such as numpy, pandas, matplotlib, statsmodel to be imported in the "exercise.py" and "evaluate.py".
I tried "import pandas as pd" but it gave an error "No module named 'pandas'".
Error suggests that the pandas needs to be installed before it can be imported. I tried "pip install pandas" and "!pip install pandas" in "exercise.py" and "evaluate.py" but it did not work.
Any suggestions on how an external library could be installed for coding exercise would be appreciated. Thank you for your time.