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

Can't import package ml_insights #41

Open
Pak-02 opened this issue Aug 19, 2024 · 2 comments
Open

Can't import package ml_insights #41

Pak-02 opened this issue Aug 19, 2024 · 2 comments

Comments

@Pak-02
Copy link

Pak-02 commented Aug 19, 2024

  • ML Inspector version: the latest version
  • Python 3.12.5:
  • Operating System: Windows

Description

I was trying to install ml_insights
But it failed to build wheel for splinecalib

What I Did

cmd: pip install ml_insights
Output:
Building wheels for collected packages: splinecalib
Building wheel for splinecalib (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for splinecalib (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [12 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-312
creating build\lib.win-amd64-cpython-312\splinecalib
copying splinecalib\calib_utils.py -> build\lib.win-amd64-cpython-312\splinecalib
copying splinecalib\splinecalib.py -> build\lib.win-amd64-cpython-312\splinecalib
copying splinecalib_init_.py -> build\lib.win-amd64-cpython-312\splinecalib
running build_ext
building 'loss_fun_c' 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 splinecalib
Failed to build splinecalib
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (splinecalib)

@blucena
Copy link
Contributor

blucena commented Aug 20, 2024

Hi @Pak-02 - thanks for logging this issue. I don't use Windows so not an expert on these problems, but what is happening is that the installer is looking for a C compiler since the code uses Cython (which compiles to C) for faster running code. It looks like you need to install the version of Visual C++ mentioned. Did you try looking through the link in the error message?

If you install Visual C++ as suggested it should be able to finish the installation. Let me know if that helps.

@Pak-02
Copy link
Author

Pak-02 commented Aug 21, 2024

Thank you so much, professor. I have set up it already

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

2 participants