[Python] ImportError: scipy.special._ufuncs_cxx does not export expected C variable...

Discussão em 'Python' iniciado por Stack, Julho 23, 2025.

  1. Stack

    Stack Membro Participativo

    I'm encountering the following error when running a Python script:

    ImportError: scipy.special._ufuncs_cxx does not export expected C variable _export_faddeeva_dawsn


    Environment:

    • Python version: 3.11
    • OS: MacOS
    • Virtual environment with .venv and uv

    Installed libraries:

    appnope==0.1.4
    asttokens==3.0.0
    click==8.2.1
    cloudpickle==3.1.1
    comm==0.2.2
    contourpy==1.3.2
    cycler==0.12.1
    dask==2025.7.0
    debugpy==1.8.15
    decorator==5.2.1
    executing==2.2.0
    fonttools==4.59.0
    fsspec==2025.7.0
    importlib-metadata==8.7.0
    ipykernel==6.30.0
    ipython==9.4.0
    ipython-pygments-lexers==1.1.1
    jedi==0.19.2
    joblib==1.5.1
    jupyter-client==8.6.3
    jupyter-core==5.8.1
    kiwisolver==1.4.8
    lightgbm==4.6.0
    locket==1.0.0
    matplotlib==3.10.3
    matplotlib-inline==0.1.7
    nest-asyncio==1.6.0
    numpy==1.23.5
    packaging==25.0
    pandas==2.3.1
    parso==0.8.4
    partd==1.4.2
    pexpect==4.9.0
    pillow==11.3.0
    platformdirs==4.3.8
    prompt-toolkit==3.0.51
    psutil==7.0.0
    ptyprocess==0.7.0
    pure-eval==0.2.3
    pygments==2.19.2
    pyparsing==3.2.3
    python-dateutil==2.9.0.post0
    pytz==2025.2
    pyyaml==6.0.2
    pyzmq==27.0.0
    ruff==0.12.4
    scikit-learn==1.7.1
    scipy==1.10.0
    six==1.17.0
    stack-data==0.6.3
    threadpoolctl==3.6.0
    toolz==1.0.0
    tornado==6.5.1
    traitlets==5.14.3
    typing-extensions==4.14.1
    tzdata==2025.2
    wcwidth==0.2.13
    zipp==3.23.0


    Steps taken:

    • I tried uninstalled and reinstalling numpy, scikit-learn and scipy
    • I tried upgrading them to their latest releases
    • I cleared the uv cache and reinstalled the librareis

    How can I resolve this error? Is there a specific version of scipy, scikit-learn, numpy or pandas that I should get to avoid this issue? Thanks!

    Continue reading...

Compartilhe esta Página