[Python] Installation of backtesting package through Conda failed

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

  1. Stack

    Stack Membro Participativo

    I'm using backtesting.py package https://kernc.github.io/backtesting.py/ in the latest Anaconda distribution. The computation is finished successfully with right result. But it's not possible to show the plot since the Bokeh version for the Backtesting package is not compatible with the python version. I don't know how to fix the problem. Then I tried to use Conda and install python 3.8, numpy, matplotlib and bokeh one by one. But it gives the following error message when I install backtesting with the command conda install backtesting=0.6.4

    Channels:
    - conda-forge
    - defaults
    Platform: win-64
    Collecting package metadata (repodata.json): done
    Solving environment: failed

    PackagesNotFoundError: The following packages are not available from current channels:

    - backtesting

    Current channels:

    - https://conda.anaconda.org/conda-forge
    - defaults

    To search for alternate channels that may provide the conda package you're
    looking for, navigate to

    https://anaconda.org

    and use the search bar at the top of the page.


    Is there any way to fix it? Or is it possible to fix the problem in Anaconda so that it can show the plot?

    Continue reading...

Compartilhe esta Página