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
pip install
fails (compile error) with Python 3.7rc1
#11320
Comments
Thanks for reporting this! Does installation of the latest dev version works?
Note that you would need Cython >=0.27.3 to compile it.. (Linking to #11224 for future reference) |
It sounds like this might be something Cython needs to fix and release. We
are dependent on Cython's support for Py3.7 here.
|
Yes, according to cython/cython#1955 the minimum requirements under Python 3.7 is Cython 0.27.3 where this issue was fixed. In #11224 I can confirm that the build works fine with Cython 0.28. The minimal Cython version in |
The easiest way for us to move towards Python 3.7 support is for us to use it in our daily "latest dependencies" job. But this is easiest when NumPy and SciPy are supporting Python 3.7. NumPy is producing wheels for 3.7. At the moment, SciPy isn't making builds on Python 3.7, but is working on it (scipy/scipy#8988). We will try to follow suit. IMO, we should not worry about Python 3.7 support in v0.20.0, but deal with it in a bug fix release (0.20.1 or 0.20.2), given the limited support in SciPy and Six (benjaminp/six#241). |
To summarize the situation for Python 3.7,
|
SciPy now has binary wheels for Python 3.7 (all platforms). |
FWIW, #11409 identifies that we can build with the development versions of numpy, scipy and cython, and all tests pass (albeit with PendingDeprecationWarning and DeprecationWarning). It does not try to run the example gallery, though. Nor does it try building in Windows (perhaps it should). |
|
A month very roughly for the next release. Meanwhile you can either install the development version #11320 (comment) or downgrade to python 3.6. |
We could consider releasing 0.19.2 in a hurry just for Py3.7 support??
|
Given the amount of issues that were opened lately about it, it might be preferable indeed. It will also simplify comparisons / regression tracking between 0.19.x and 0.20.x for people using Python 3.7 in the future. |
If we end up doing a 0.19.2 release, here are two things to consider adding because they missed 0.19.1 for no particular good reason.
|
On Ubuntu 18.04 the recommended workaround works: |
Homebrew has updated their default python installation to 3.7. Since homebrew doesn't allow for installing specific versions downgrading to 3.6 is not an easy prospect. Just an FYI |
@bgyarfas it should be possible to downgrade from python 3.7 back to 3.6.5 in brew
|
This works only if the previous version is still cached on the local machine. |
@bgyarfas If you don't have 3.6 cached in homebrew you can use pyenv. The following worked for me...
You can do this without virtualenv, but my typical setup relies on it. |
I think the point is that the average Homebrew user will have Python 3.7 by default. |
A minor 0.19.2 release that will support Python 3.7 is in progress. |
what is the timeline for the 19.2 release? |
@sam-s If you need it now, you can try installing the master branch using the latest cython version:
This worked for me on Python 3.7 using pipenv. |
you could also install from the 0.19.X branch which is basically ready for
release, but the people who can make the release haven't been available.
|
Release 0.19.2 is now available on PyPI: https://pypi.org/project/scikit-learn/0.19.2/ |
Closing as fixed. Please use 0.19.2 with Python 3.7. |
What is the plan for 0.20.X? It looks like I can build with 0.20.0, but not with 0.20.1.
|
Have you tried updating Cython as mentioned in #11320 (comment)? |
Just updated to 0.20.2 and it's working. |
I made the experience that all versions lower than My tests: https://travis-ci.org/nok/sklearn-porter/builds/561765760 Are there any plans to cover these versions? |
I don't think so. Users with Python 3.7 would need to upgrade to scikit-learn 0.20.X at least. |
Description
Unable to
pip install
(compile error:PyThreadState
has no member ...) with Python 3.7rc1.My apologies if this has been reported, but I couldn't find it in the issues (closed/open) nor any pull request for it.
There have been similar issues with pyyaml (yaml/pyyaml#126), numpy (numpy/numpy#10500), cython (cython/cython#1978), and pygame (pygame/pygame#382).
Steps/Code to Reproduce
Install Python 3.7rc1.
pip install scikit-learn
Expected Results
pip
succeeds.Actual Results
Compilation errors:
Versions
The text was updated successfully, but these errors were encountered: