|
|
|
|
|
by emmanueloga_
699 days ago
|
|
Tangent: to run things with pixi, you need to either 1) `pixi run thing` 2) `pixi shell` to spawn a new shell with adjusted env or 3) `eval "$(pixi shell-hook -s bash)"` (or similar for other supported shells) to modify your current session. I found that direnv [1] really improved the ergonomics for me. There's some misunderstanding that direnv requires Nix but that's not true. It does one thing and does it well: load .envrc files when you cd that path. I have a lil `.envrc` that looks like this: # Load pixi shell settings.
eval "$(pixi shell-hook -s bash)"
After that, you can just run `python` and it will run whatever python you asked it to install (`pixi add python` adds the latest python 3 in conda by default).-- 1: https://direnv.net/ |
|