[Python] Problemas pra instalar vectorbt [fechada]

Discussão em 'Python' iniciado por Stack, Dezembro 3, 2024.

  1. Stack

    Stack Membro Participativo

    Ja tentei executar o powershell como administrador. Já tentei instalar o Visual Studio em várias versões para baixar a ferramenta de desenvolvimento para desktop C++, mas nada que eu tento consegue instalar o vectorbt pelo pip install -U vectorbt e sem o -U também. Já tentei atualizar o pip usando python.exe -m pip install --upgrade pip. No prompt da instalação aparece o seguinte:

    Using cached vectorbt-0.26.2.tar.gz (485 kB)
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
    Preparing metadata (pyproject.toml): started
    Preparing metadata (pyproject.toml): finished with status 'done'
    Collecting numpy<2.0.0,>=1.16.5 (from vectorbt)
    Using cached numpy-1.26.4.tar.gz (15.8 MB)
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
    Installing backend dependencies: started
    Installing backend dependencies: finished with status 'done'
    Preparing metadata (pyproject.toml): started
    Preparing metadata (pyproject.toml): still running...
    Preparing metadata (pyproject.toml): still running...
    Preparing metadata (pyproject.toml): still running...
    Preparing metadata (pyproject.toml): finished with status 'done'
    Requirement already satisfied: pandas in d:\projects\venv\lib\site-packages (from vectorbt) (2.2.3)
    Requirement already satisfied: scipy in d:\projects\venv\lib\site-packages (from vectorbt) (1.14.1)
    Collecting matplotlib (from vectorbt)
    Obtaining dependency information for matplotlib from https://files.pythonhosted.org/packages/28/dd/0a5176027c1cb94fe75f69f76cb274180c8abf740df6fc0e6a1e4cbaec3f/matplotlib-3.9.3-cp313-cp313-win_amd64.whl.metadata
    Using cached matplotlib-3.9.3-cp313-cp313-win_amd64.whl.metadata (11 kB)
    Collecting plotly>=4.12.0 (from vectorbt)
    Obtaining dependency information for plotly>=4.12.0 from https://files.pythonhosted.org/packages/e5/ae/580600f441f6fc05218bd6c9d5794f4aef072a7d9093b291f1c50a9db8bc/plotly-5.24.1-py3-none-any.whl.metadata
    Using cached plotly-5.24.1-py3-none-any.whl.metadata (7.3 kB)
    Collecting ipywidgets>=7.0.0 (from vectorbt)
    Obtaining dependency information for ipywidgets>=7.0.0 from https://files.pythonhosted.org/packages/22/2d/9c0b76f2f9cc0ebede1b9371b6f317243028ed60b90705863d493bae622e/ipywidgets-8.1.5-py3-none-any.whl.metadata
    Using cached ipywidgets-8.1.5-py3-none-any.whl.metadata (2.3 kB)
    Collecting numba>=0.57.0 (from vectorbt)
    Using cached numba-0.60.0.tar.gz (2.7 MB)
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'error'

    error: subprocess-exited-with-error

    Getting requirements to build wheel did not run successfully.
    exit code: 1

    [24 lines of output]
    Traceback (most recent call last):
    File "D:\Projects\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
    main()
    ~~~~^^
    File "D:\Projects\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
    json_out['return_val'] = hook(**hook_input['kwargs'])
    ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
    File "D:\Projects\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
    return hook(config_settings)
    File "C:\Users\Bruno\AppData\Local\Temp\pip-build-env-t0hwwsbt\overlay\Lib\site-packages\setuptools\build_meta.py", line 334, in get_requires_for_build_wheel
    return self._get_build_requires(config_settings, requirements=[])
    ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\Bruno\AppData\Local\Temp\pip-build-env-t0hwwsbt\overlay\Lib\site-packages\setuptools\build_meta.py", line 304, in _get_build_requires
    self.run_setup()
    ~~~~~~~~~~~~~~^^
    File "C:\Users\Bruno\AppData\Local\Temp\pip-build-env-t0hwwsbt\overlay\Lib\site-packages\setuptools\build_meta.py", line 522, in run_setup
    super().run_setup(setup_script=setup_script)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\Bruno\AppData\Local\Temp\pip-build-env-t0hwwsbt\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup
    exec(code, locals())
    ~~~~^^^^^^^^^^^^^^^^
    File "<string>", line 51, in <module>
    File "<string>", line 48, in _guard_py_ver
    RuntimeError: Cannot install on Python version 3.13.0; only versions >=3.9,<3.13 are supported.
    [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
    error: subprocess-exited-with-error

    Getting requirements to build wheel did not run successfully.
    exit code: 1

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.

    [notice] A new release of pip is available: 23.2.1 -> 24.3.1
    [notice] To update, run: python.exe -m pip install --upgrade pip```

    Continue reading...

Compartilhe esta Página