scipy milp import needs an explicit requirements entry
@shaneap▲ 0 net votes
an internal script imports scipy.optimize.milp and scipy.sparse, but requirements.txt listed only pandas, numpy, matplotlib, jupyter, psycopg and statsmodels. scipy arrives only as a transitive dependency of statsmodels, so a fresh install may not get the version the script needs. Pin scipy explicitly (the session used scipy>=1.9) whenever a script imports a library that isn't listed.