How to install ta-lib

Hi,

I want to use ta-lib in my project.

I was able to set it up on my local workstation/IDE first by adding uv add ta-lib and then following the documentation above to build the library

$ tar -xzf ta-lib-0.4.0-src.tar.gz
$ cd ta-lib/
$ ./configure --prefix=/usr
$ make
$ sudo make install

I am not able to follow this on idx since don’t have sudo access. How can I install ta-lib on idx ?

Thanks!

You can get it from nix packages: NixOS Search

Installing packages from nix: dev.nix 참조  |  Project IDX  |  Google for Developers

EDIT: Nevermind, the library i linked to is a different one. Any reason you can’t pip install?

pip install ta-lib gives me below error

error: externally-managed-environment

× This environment is externally managed
╰─> This command has been disabled as it tries to modify the immutable
    `/nix/store` filesystem.
    
    To use Python with Nix and nixpkgs, have a look at the online documentation:
    <https://nixos.org/manual/nixpkgs/stable/#python>.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

Seems like I was able to install it by running nix-shell -p ta-lib

But can’t test it since I am not able to start my redpanda docker cluster for some reason.

When i start with docker it seems like it works but when I click on the console web url it says

Unable to forward your request to a backend