[Python] não estou conseguindo importar o sklearn, me mostra o seguinte erro: [fechada]

Discussão em 'Python' iniciado por Stack, Novembro 9, 2024.

  1. Stack

    Stack Membro Participativo

    ---------------------------------------------------------------------------
    ValueError Traceback (most recent call last)
    Cell In[14], line 4
    2 import numpy as np
    3 #from sklearn import metrics as mt
    ----> 4 from sklearn import neighbors as nb

    File ~/repos/fundamentos_ml/dataset/.venv/lib/python3.10/site-packages/sklearn/__init__.py:82
    80 from . import _distributor_init # noqa: F401
    81 from . import __check_build # noqa: F401
    ---> 82 from .base import clone
    83 from .utils._show_versions import show_versions
    85 __all__ = [
    86 "calibration",
    87 "cluster",
    (...)
    128 "show_versions",
    129 ]

    File ~/repos/fundamentos_ml/dataset/.venv/lib/python3.10/site-packages/sklearn/base.py:17
    15 from . import __version__
    16 from ._config import get_config
    ---> 17 from .utils import _IS_32BIT
    18 from .utils._set_output import _SetOutputMixin
    19 from .utils._tags import (
    ...
    21 from . import _joblib

    File sklearn/utils/murmurhash.pyx:1, in init sklearn.utils.murmurhash()

    ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

    Continue reading...

Compartilhe esta Página