[Python] Weird exit code using scikit-learn libraries

Discussão em 'Python' iniciado por Stack, Fevereiro 19, 2025.

  1. Stack

    Stack Membro Participativo

    I'm currently runing Python 3.11.6 on windows, my script runs fine up to the point when it's starts to use [scikit-learn] version 1.5.2 I got this exit code

    Process finished with exit code -1066598274 (0xC06D007E)


    However if I use new release of scikit I got this error instead.

    Traceback (most recent call last):
    File "C:\Users\Konrad Kij\Documents\MSC_Apex Workspace\Macros\RSM_Projekt_aproksymacja.py", line 8, in <module>
    from sklearn.linear_model import LinearRegression
    File "C:\Program Files\MSC.Software\MSC Apex\2024-011290\python3\Lib\site-packages\sklearn\linear_model__init__.py", line 10, in <module>
    from ._base import LinearRegression
    File "C:\Program Files\MSC.Software\MSC Apex\2024-011290\python3\Lib\site-packages\sklearn\linear_model_base.py", line 19, in <module>
    from ..base import (
    ModuleNotFoundError: No module named 'sklearn.base'


    If I run same script on Python 3.13.2 everything runs fine. Could anyone help me with this?

    Just tried different scikit versions.

    Continue reading...

Compartilhe esta Página