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
Update to work with Python 3.8 and sklearn >0.20.0 #13
Comments
Digging into things, scikit-learn 0.22 is the first version to explicitly work with Python 3.8: https://github.com/scikit-learn/scikit-learn/blob/0.22/setup.py This is also confirmed here: scikit-learn/scikit-learn#15328 (comment) I'm submitting a PR which will use environment markers (see PEP 508 and usage example for setup.py as follows to control for requiring sklearn>=0.22 for Python 3.7 only: install_requires=[
"scikit-learn>=0.20;python_version<'3.8'",
"scikit-learn>=0.22;python_version>='3.8'",
"deap>=1.0.2",
], |
Another fun issue is that
PR on its way that fixes all of this. |
Closed with commit c029c0e. I didn't add the |
I came across some issues/warnings when using Python 3.8 and more recent versions of sklearn when debugging solutions to #11
For example, using Python 3.8 with scikit-learn 0.20.0 you get a couple issues:
1. Warning - sklearn 0.20.0 uses an version of joblib/cloudpickle that uses
imp
instead ofimportlib
imp
has been deprecated since Python 3.4 but I think the warning maybe only shows on Python 3.8? Relating the sklearn, this is well documented in scikit-learn/scikit-learn#12226 and scikit-learn/scikit-learn#12434 and solved I think in 0.20.1 onwards.2. TypeError: an integer is required (got type bytes)
This is another incompatibility between Python 3.8 and the bundled versions of joblib/cloudpickle in sklearn 0.20.0, similar to this.
Full traceback:
The text was updated successfully, but these errors were encountered: