I'm trying to deploy an azure function locally, before I deploy it as a web api.
I'm using skforecast with a pre-loaded model on a file "forecaster.py".
This is how my init.py looks like:
import logging
import azure.functions as func
# Load model
import joblib
forecaster_loaded = load("forecaster.py")
The requirements.txt:
azure-functions==4.0.4736
joblib==1.1.0
matplotlib==3.2.2
numpy==1.21.6
pandas==1.3.5
session_info==1.0.0
skforecast==0.4.3
sklearn==1.0.2
xgboost==0.90
Upon running func start on the terminal, the function is executed, and returns the error:
Exception: ModuleNotFoundError: No module named 'joblib'
I have installed joblib in my virtual environment :
(.venv) C:\Users\user_\Projetos\forecast\ProjetoForecast>pip install joblib
Requirement already satisfied: joblib in c:\users\user_\projetos\forecast\.venv\lib\site-packages (1.1.0)
Does not solve the problem.
I have checked the project folder structure and it is perfect according to the docs. The path forecast\.venv\Lib\site-packages\joblib exists.
Can anyone help? Thanks in advance!