During deployment, I encountered an error due to a version mismatch in the scikit-learn library. The sklearn.metrics._dist_metrics
module differs between versions 1.2.2 and 1.3.0, causing issues with EuclideanDistance()
. It seems they replaced it with EuclideanDistance64()
in 1.3.0.
To ensure the same scikit-learn version (1.3.0) is installed in the inference environment. How can we set up the requirement for the inference environment?