[Python] Trouble installing FBprophet

Discussão em 'Python' iniciado por Stack, Março 13, 2025.

  1. Stack

    Stack Membro Participativo

    Below is the code when I try to install PyStan, I already have NumPy and Cython installed, but the PyStan installation gives this error. My goal is to install FBprophet, and I figured this step needs to work before I can install it, since it also gives errors when I try pip install fbprophet. How can I fix it?

    error: subprocess-exited-with-error

    × python setup.py bdist_wheel did not run successfully.
    │ exit code: 1
    ╰─> [3 lines of output]
    /private/var/folders/d7/r1wlkvcs4sn7fk8q5nc6rr640000gn/T/pip-req-build-finxexd0/setup.py:61: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead
    self.version = node.value.s
    Cython>=0.22 and NumPy are required.
    [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
    ERROR: Failed building wheel for pystan
    Running setup.py clean for pystan
    Failed to build pystan
    ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pystan)
    (.venv) % pip install cython
    Requirement already satisfied: cython in ./.venv/lib/python3.12/site-packages (3.0.10)
    (.venv) Projects % pip install numpy
    Requirement already satisfied: numpy in ./.venv/lib/python3.12/site-packages (1.26.4)
    (.venv) Projects % `


    Installing Cython should've made it possible to install PyStan.

    Continue reading...

Compartilhe esta Página