I've got a #nix #nixos question for you smart beautiful people:

I've got a program that uses pygame and pyusb installed via shell-nix. I want to also pull in pycycling, but that's not packaged. If I create a venv and install everything via pip, pygame does not work.

My question: How do I install pycycling from pip while still being able to use the other packages installed via nix-shell?

@aeva

Have you tried creating a venv from inside the nix-shell; the one you were using or something like `python.withPackages (p: [p.pygame p.pyusb])`?

@robryk yeah. once that virtual env is active, import can't find the packages that nix-shell installed

Follow

@aeva

Hmm.. I'm confused, it doesn't seem to happen for me: paste.sr.ht/~robryk/f749ebf57f

Am I doing something significantly different?

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.