Librosa Anaconda install issue

1,606 views
Skip to first unread message

jeannoel...@gmail.com

unread,
Nov 16, 2018, 8:49:12 AM11/16/18
to librosa

Hello

I can't install Librosa on anaconda using :
conda install -c conda-forge librosa

I'm using Anaconda3-5.3.0 (MacOSX-x86_64)

The terminal stays forever with displaying "solving environment".. but then nothing happens.
I don"r know how to proceed from there..

thanks for any help

Jean-Noel

Vincent Lostanlen

unread,
Nov 16, 2018, 10:07:35 AM11/16/18
to jeannoel...@gmail.com, lib...@googlegroups.com
Dear Jean-Noël,
Thank you for reaching out.
This might be due to your antivirus blocking the download.
I would recommend you read this thread: https://github.com/conda/conda/issues/6406
Sincerely,
Vincent Lostanlen.

--
You received this message because you are subscribed to the Google Groups "librosa" group.
To unsubscribe from this group and stop receiving emails from it, send an email to librosa+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/librosa/40e92c6a-ef7d-4255-b4d3-49fc88ec4c72%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Stephen Shortridge

unread,
Nov 16, 2018, 10:39:31 AM11/16/18
to Vincent Lostanlen, jeannoel...@gmail.com, lib...@googlegroups.com
I believe you’ll need to add a channel called conda-forge to the conda navigator. It will then show up as a package to install from conda navigator for your environment. 

Sent from my iPhone

jeannoel...@gmail.com

unread,
Nov 17, 2018, 3:00:19 AM11/17/18
to librosa
Thanks to all of you for your answers.
Unfortunately, still no luck with the installation.
conda-forge is in my channels, I see the librosa installer in the anaconda browser.
using this or the terminal does not work. I'm still facing the "solving.." for ever.
No anti virus installed on my mac.

odd..
I did install without a glitch a few months ago on another machine..

Jean-Noel

Vincent Lostanlen

unread,
Nov 17, 2018, 8:47:03 AM11/17/18
to jeannoel...@gmail.com, lib...@googlegroups.com
Dear Jean-Noël,
Perhaps you can try using pip instead of conda?
Sincerely,
Vincent Lostanlen.

--
You received this message because you are subscribed to the Google Groups "librosa" group.
To unsubscribe from this group and stop receiving emails from it, send an email to librosa+u...@googlegroups.com.

Brian McFee

unread,
Nov 17, 2018, 10:40:58 AM11/17/18
to librosa
This is usually caused by some version incompatibility between the requested dependencies (for librosa) and what's currently on your system.

Conda uses a satisfiability solver to determine a mutually consistent set of installed versions of packages.  In theory, that's an np-hard problem and can take quite a while to compute; in practice, it's usually pretty easy, and you don't notice it.

In my experience, when a conda install takes a long time saying "solving environment", it's often because it needs to wind all the way back to the python version and then rebuild the entire installed package collection.  For instance, I have a python 3.7 environment for which there's no tensorflow package available.  If I try to install a conda package that requires tensorflow, conda will basically try to scrap the entire environment and rebuild it as a 3.6 env.  That's an extreme case, but it might give you some clue as to what's going on.

In your specific case, I would suspect either numba or scikit-learn as the culprit.  You can see the full list of dependencies in our conda recipe here: https://github.com/librosa/librosa-feedstock/blob/master/recipe/meta.yaml#L26-L37  and check against what's currently installed in your environment.  Perhaps try installing one of those at a time until you hit the "solving environment" issue again, and that will tell you which package is to blame.

Jean-Noel Renucci

unread,
Nov 18, 2018, 3:14:54 AM11/18/18
to Brian McFee, librosa
Thanks for your answer Brian

That was it indeed...
all good now, I just downgraded my whole anaconda installation.

All the best
Jean-Noel



-- 
You received this message because you are subscribed to the Google Groups "librosa" group.
To unsubscribe from this group and stop receiving emails from it, send an email to librosa+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages