Hacker News new | ask | show | jobs
by notemaker 1292 days ago
Some packages won't work when installed via pip though, psycopg2 for instance.
1 comments

Occasionally you can get packages with native dependencies to work by creating a nix shell that includes the dependent libraries. Sometimes that can mean using an FHS shell, which is indeed annoying.

It’s not elegant, but you can also usually find popular Python libraries in nixpkgs so they’re available in your shell’s “global” Python environment.