Keep Libraries after stop

Hello,
is it possible to keep librarier after stop machine or reinstall them.
When I start the machine it says:
Setting up environment
Installing tensorflow==2.10.0rc3, pysndfile==1.4.4, sndfile==0.2.0, inflect, librosa, gdown

But despite of this after start cells it says:
ModuleNotFoundError: No module named ‘librosa’
and I should pip install it every time.

I installed them via environment but it keeps asking to install it anyway.

Hi @serg

If I run !pip install tensorflow==2.10.0rc3 pysndfile==1.4.4 sndfile==0.2.0 inflect librosa gdown I see the following error:

    build/temp.linux-x86_64-cpython-38/sndfile._sndfile.c:571:10: fatal error: sndfile.h: No such file or directory
        571 | #include <sndfile.h>
            |          ^~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for sndfile
  Running setup.py clean for sndfile
  Building wheel for audioread (setup.py) ... - \ | done
  Created wheel for audioread: filename=audioread-3.0.0-py3-none-any.whl size=23704 sha256=f97178e0c2bd4dccfe9694f0f2e1ba590f28e3177fe1debb666d0756e6b79a79
  Stored in directory: /home/datalore/.cache/pip/wheels/0a/ed/be/49df2538fca496690a024a4374455584d65c2afd6fc3d6e9c7
Successfully built audioread
Failed to build pysndfile sndfile
ERROR: Could not build wheels for pysndfile, which is required to install pyproject.toml-based projects

So it seems that some pysndfile deps are missing, which prevents pip from installing the whole package list.

We are working on improving of error reporting during package installation, hopefully it will be more intuitive soon.

Currently you have either to remove pysndfile/sndfile from environment.yml or to install their deps in init.sh