Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
619 views
in Technique[技术] by (71.8m points)

python - Heroku Deployment problem AttributeError: module 'sklearn.utils.deprecation' has no attribute 'DeprecationDict'

I have been trying to deploy an app on Heroku, which works fine on my local but while deploying gives me the error AttributeError: module 'sklearn.utils.deprecation' has no attribute 'DeprecationDict'


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Solved: The problem arose because the sklearn version used to train the model was old, whereas the version used by Heroku to load the model was the newer one, so need to make sure the requirement.txt has the same version used to train the model.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

56.8k users

...