Skip to content

[Question]: How to install latest python packages ? #545

@alienzj

Description

@alienzj

Current Behavior

{pkgs, ...}: {
  kernel.python.bioenv = {
    enable = true;
    python = "python311";
    displayName = "Bioenv python";
    extraPackages = ps: [
      ps.pandas
      ps.numpy
      ps.seaborn
      ps.matplotlib
      ps.scipy
      ps.scikit-learn
      ps.lightgbm
      ps.xgboost
      ps.statsmodels
    ];
  };
}

For example, nix will help to install package pandas v1.5.2.

Expected Behavior

I want to install pandas v2.2.2.

Steps To Reproduce

git clone https://github.com/alienzj/jupyenvrc
cd jupyenvrc
nix run

OS

- system: `"x86_64-linux"`
- host os: `Linux 6.10.11, NixOS, 24.05 (Uakari), 24.05.20240920.944b2ae`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.18.5`
- channels(root): `"nixos, nixos-hardware"`
- nixpkgs: `/nix/store/mvz96grv31nxq69ldw5a5pn2qh1s6ca6-source`

Version

https://github.com/tweag/jupyenv/blob/main/template/flake.nix

Additional Context

After checking https://search.nixos.org/packages?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=pandas,
the latest version of pandas is v2.2.2.

Relevant log output

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions