Ask coding questions

← Back to all posts
How can I install python package, that's not in Nix?
EvGamerReustle (0)

I need Tensorflow to run a study project, but when I try to install Tensorflow with python repl, it says that my hard drive quota exceeded

So I decided to leverage Nix repl to sidestep that problem. But there are no tensorflow_hub and tensorflow_datasets available with nix. I need them to run my python project. How do I install them and use them along with tensorflow which I get from Nix?

InvisibleOne (3224)

I think you can still install things with pip, although most of them should be installable through the replit package manager

EvGamerReustle (0)

@InvisibleOne, that's the first thing I tried of course
it returns following

subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1.

I don't think that it would work with nix's python anyway since
which pip


which python

EvGamerReustle (0)

@InvisibleOne I can't share the code I need to run with the stuff, but I provide repl for reference