-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Libraries Versions #8
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problems encountered while doing lab via Coursera:
Flask version 1.0.2 raises Jinja2 error.
ImportError: cannot import name 'Markup' from 'jinja2' (/home/coder/project/VENV/lib/python3.8/site-packages/jinja2/__init__.py)
Updating to version 2.2.2 resolves the issue.
Numpy installed by default is 1.24.1, which raises:
AttributeError: module 'numpy' has no attribute 'float'
on joblib.load(file_name) call.
Preinstalling numpy==1.23 resolves the issue.
prediction = list(clf.predict(scaled_payload))
on line 71 raisesWhich can be resolved by downgrading scikit-learn to 0.20.3, but python3.8 + updated pip does not support installing it.
So, there is an open question about resolving it: use the latest versions and update the code (imports and logic would be different) or use previous Python versions.
The text was updated successfully, but these errors were encountered: