Installing librosa

633 views
Skip to first unread message

FanonX Rogers

unread,
Feb 12, 2017, 9:45:59 PM2/12/17
to librosa
Hello, 

I am having trouble installing librosa on my MacBook. I have tried 'sudo pip install librosa' as well as 'sudo pip install librosa --ignore six' and none of these have work. I feel like the problem does not have to do with librosa itself but with the system having permission to run librosa. 

The error states 


Found existing installation: numpy 1.8.0rc1

    DEPRECATION: Uninstalling a distutils installed project (numpy) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.

    Uninstalling numpy-1.8.0rc1:

Exception:

Traceback (most recent call last):

  File "/Library/Python/2.7/site-packages/pip-9.0.0-py2.7.egg/pip/basecommand.py", line 215, in main

    status = self.run(options, args)

  File "/Library/Python/2.7/site-packages/pip-9.0.0-py2.7.egg/pip/commands/install.py", line 342, in run

    prefix=options.prefix_path,

  File "/Library/Python/2.7/site-packages/pip-9.0.0-py2.7.egg/pip/req/req_set.py", line 778, in install

    requirement.uninstall(auto_confirm=True)

  File "/Library/Python/2.7/site-packages/pip-9.0.0-py2.7.egg/pip/req/req_install.py", line 752, in uninstall

    paths_to_remove.remove(auto_confirm)

  File "/Library/Python/2.7/site-packages/pip-9.0.0-py2.7.egg/pip/req/req_uninstall.py", line 115, in remove

    renames(path, new_path)

  File "/Library/Python/2.7/site-packages/pip-9.0.0-py2.7.egg/pip/utils/__init__.py", line 267, in renames

    shutil.move(old, new)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 302, in move

    copy2(src, real_dst)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 131, in copy2

    copystat(src, dst)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 103, in copystat

    os.chflags(dst, st.st_flags)

OSError: [Errno 1] Operation not permitted: '/tmp/pip-sEbGvk-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy-1.8.0rc1-py2.7.egg-info'



Brian McFee

unread,
Feb 16, 2017, 11:25:15 AM2/16/17
to librosa
That's indeed a strange one, and not something I've come across.

Maybe someone out there who uses OSX regularly can chime in?

My two cents: if at all possible, I recommend not using OSX's system python, and instead use (ana)conda environments: https://anaconda.org/

The "six" package should not be causing you any trouble here though.  It looks like the issue stems from having an old numpy version that needs to be upgraded, and somewhere along the way, you don't have permission to do so.  You could try "pip install --no-deps librosa", but there will be no guarantees that the dependencies are satisfied.

Dan Ellis

unread,
Feb 16, 2017, 9:39:12 PM2/16/17
to Brian McFee, librosa
As an OS X user, I can say that I've definitely had problems with ownership when installing: Python mostly wants to be installed owned only by the user, but the system python is owned by root, so needs "sudo pip".  But then some other packages may have been installed with user permissions.  I don't remember the details, but I remember it being a mess.

I now run with the Anaconda python instead, as Brian recommends:

dpwe@dpwe-macbookpro2:~/Downloads$ which python

/Applications/anaconda/bin/python


  DAn.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/librosa/36fecfaa-bb6f-44a5-bda1-d1b39605e436%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Jeff Treviño

unread,
Jun 20, 2017, 2:59:04 AM6/20/17
to librosa, brm...@gmail.com, dp...@ee.columbia.edu
Likewise, I also needed to use "sudo" to successfully install on OS X. I was able to install only using easy_install, not pip:
sudo easy_install numpy
sudo easy_install librosa
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