Skip to content
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

ERROR: Failed building wheel for scikit-learn-extra #164

Open
0x2b375 opened this issue Mar 26, 2023 · 10 comments
Open

ERROR: Failed building wheel for scikit-learn-extra #164

0x2b375 opened this issue Mar 26, 2023 · 10 comments

Comments

@0x2b375
Copy link

0x2b375 commented Mar 26, 2023

this is the error i get when I try to download package

Using cached scikit-learn-extra-0.2.0.tar.gz (813 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy>=1.13.3 in c:\users\acer nitro 5\appdata\local\programs\python\python310\lib\site-packages (from scikit-learn-extra) (1.24.2)
Requirement already satisfied: scipy>=0.19.1 in c:\users\acer nitro 5\appdata\local\programs\python\python310\lib\site-packages (from scikit-learn-extra) (1.10.1)
Requirement already satisfied: scikit-learn>=0.23.0 in c:\users\acer nitro 5\appdata\local\programs\python\python310\lib\site-packages (from scikit-learn-extra) (1.2.2)
Requirement already satisfied: joblib>=1.1.1 in c:\users\acer nitro 5\appdata\local\programs\python\python310\lib\site-packages (from scikit-learn>=0.23.0->scikit-learn-extra) (1.2.0)
Requirement already satisfied: threadpoolctl>=2.0.0 in c:\users\acer nitro 5\appdata\local\programs\python\python310\lib\site-packages (from scikit-learn>=0.23.0->scikit-learn-extra) (3.1.0)
Building wheels for collected packages: scikit-learn-extra
Building wheel for scikit-learn-extra (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for scikit-learn-extra (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [49 lines of output]
C:\Users\Acer Nitro 5\AppData\Local\Temp\pip-build-env-ig6kewu7\overlay\Lib\site-packages\setuptools\dist.py:788: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
warnings.warn(
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-310
creating build\lib.win-amd64-cpython-310\benchmarks
copying benchmarks\bench_rbfsampler_fastfood.py -> build\lib.win-amd64-cpython-310\benchmarks
copying benchmarks_init_.py -> build\lib.win-amd64-cpython-310\benchmarks
creating build\lib.win-amd64-cpython-310\sklearn_extra
copying sklearn_extra_version.py -> build\lib.win-amd64-cpython-310\sklearn_extra
copying sklearn_extra_init_.py -> build\lib.win-amd64-cpython-310\sklearn_extra
creating build\lib.win-amd64-cpython-310\benchmarks_bench
copying benchmarks_bench\eigenpro_plot_mnist.py -> build\lib.win-amd64-cpython-310\benchmarks_bench
copying benchmarks_bench\eigenpro_plot_noisy_mnist.py -> build\lib.win-amd64-cpython-310\benchmarks_bench
copying benchmarks_bench\eigenpro_plot_synthetic.py -> build\lib.win-amd64-cpython-310\benchmarks_bench
copying benchmarks_bench\robust_plot_synthetic.py -> build\lib.win-amd64-cpython-310\benchmarks_bench
copying benchmarks_bench_init_.py -> build\lib.win-amd64-cpython-310\benchmarks_bench
creating build\lib.win-amd64-cpython-310\sklearn_extra\cluster
copying sklearn_extra\cluster_commonnn.py -> build\lib.win-amd64-cpython-310\sklearn_extra\cluster
copying sklearn_extra\cluster_k_medoids.py -> build\lib.win-amd64-cpython-310\sklearn_extra\cluster
copying sklearn_extra\cluster_init_.py -> build\lib.win-amd64-cpython-310\sklearn_extra\cluster
creating build\lib.win-amd64-cpython-310\sklearn_extra\kernel_approximation
copying sklearn_extra\kernel_approximation\test_fastfood.py -> build\lib.win-amd64-cpython-310\sklearn_extra\kernel_approximation
copying sklearn_extra\kernel_approximation_fastfood.py -> build\lib.win-amd64-cpython-310\sklearn_extra\kernel_approximation
copying sklearn_extra\kernel_approximation_init_.py -> build\lib.win-amd64-cpython-310\sklearn_extra\kernel_approximation
creating build\lib.win-amd64-cpython-310\sklearn_extra\kernel_methods
copying sklearn_extra\kernel_methods_eigenpro.py -> build\lib.win-amd64-cpython-310\sklearn_extra\kernel_methods
copying sklearn_extra\kernel_methods_init_.py -> build\lib.win-amd64-cpython-310\sklearn_extra\kernel_methods
creating build\lib.win-amd64-cpython-310\sklearn_extra\robust
copying sklearn_extra\robust\mean_estimators.py -> build\lib.win-amd64-cpython-310\sklearn_extra\robust
copying sklearn_extra\robust\robust_weighted_estimator.py -> build\lib.win-amd64-cpython-310\sklearn_extra\robust
copying sklearn_extra\robust_init_.py -> build\lib.win-amd64-cpython-310\sklearn_extra\robust
creating build\lib.win-amd64-cpython-310\sklearn_extra\tests
copying sklearn_extra\tests\test_common.py -> build\lib.win-amd64-cpython-310\sklearn_extra\tests
copying sklearn_extra\tests_init_.py -> build\lib.win-amd64-cpython-310\sklearn_extra\tests
creating build\lib.win-amd64-cpython-310\sklearn_extra\cluster\tests
copying sklearn_extra\cluster\tests\test_commonnn.py -> build\lib.win-amd64-cpython-310\sklearn_extra\cluster\tests
copying sklearn_extra\cluster\tests\test_k_medoids.py -> build\lib.win-amd64-cpython-310\sklearn_extra\cluster\tests
copying sklearn_extra\cluster\tests_init_.py -> build\lib.win-amd64-cpython-310\sklearn_extra\cluster\tests
creating build\lib.win-amd64-cpython-310\sklearn_extra\kernel_approximation\tests
copying sklearn_extra\kernel_approximation\tests_init_.py -> build\lib.win-amd64-cpython-310\sklearn_extra\kernel_approximation\tests
creating build\lib.win-amd64-cpython-310\sklearn_extra\kernel_methods\tests
copying sklearn_extra\kernel_methods\tests\test_eigenpro.py -> build\lib.win-amd64-cpython-310\sklearn_extra\kernel_methods\tests
copying sklearn_extra\kernel_methods\tests_init_.py -> build\lib.win-amd64-cpython-310\sklearn_extra\kernel_methods\tests
running build_ext
building 'sklearn_extra.utils._cyfht' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for scikit-learn-extra
Failed to build scikit-learn-extra
ERROR: Could not build wheels for scikit-learn-extra, which is required to install pyproject.toml-based projects


@adrinjalali
Copy link
Member

This is probably because we haven't released in a long while and the binaries for python3.10 and 3.11 don't exist. @rth @TimotheeMathieu what's the release process here?

@TimotheeMathieu
Copy link
Contributor

Yes sorry, the release was almost done (the binaries are artifacts of PR #156 ). I was busy at work and forgot the last step of uploading to pypi.
I will do the upload now.

@TimotheeMathieu
Copy link
Contributor

I did the upload. We have binaries for python 3.6 to python 3.9. Not yet for python 3.10.

@0xb39 could you retry pip install scikit-learn-extra now to see if it works ?

@adrinjalali
Copy link
Member

The OP's environment is py=3.10, so it would still fail. We should add 3.10 and 3.11 here, any blockers for that?

@TimotheeMathieu
Copy link
Contributor

I will try to build it.

@rth
Copy link
Contributor

rth commented Mar 27, 2023

Thanks for managing it @TimotheeMathieu !

@TimotheeMathieu
Copy link
Contributor

TimotheeMathieu commented Mar 27, 2023

After some work (cibuildwheel is not easy to debug) I managed to have python 3.10 and 3.11 for 64bit. I uploaded them on pypi.
This should be sufficient for now and I have no idea how to solve the problem for 32bits. 32bits work with the old version of the CI and hence I also uploaded 32bits binaries for 3.6 to 3.9.
See details in PR #156 .

Now, could you can try to install @0xb39 ?

@0x2b375
Copy link
Author

0x2b375 commented Apr 5, 2023

o7

@adrinjalali
Copy link
Member

@TimotheeMathieu it would be nice to streamline that and have maybe a github action which would upload to testpypi or pypi automatically, for all versions.

@keyanxiaoma
Copy link

用python3.6构建轮子好像不行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants