Fail to install librosa

2,775 views
Skip to first unread message

YIFAN XIE

unread,
Jun 6, 2016, 3:29:26 PM6/6/16
to librosa

Dear,


I cannot install librosa using ''pip install librosa'' or ''sudo pip install librosa'', and the outcomes are listed below.


Thank you very much,


Best.


172-16-16-223:librosa-0.4.3 Yifan$ pip install librosa

Requirement already satisfied (use --upgrade to upgrade): librosa in /Users/Yifan/anaconda/lib/python2.7/site-packages/librosa-0.4.3-py2.7.egg

Requirement already satisfied (use --upgrade to upgrade): audioread>=2.0.0 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from librosa)

Requirement already satisfied (use --upgrade to upgrade): numpy>=1.8.0 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from librosa)

Requirement already satisfied (use --upgrade to upgrade): scipy>=0.13.0 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from librosa)

Requirement already satisfied (use --upgrade to upgrade): scikit-learn>=0.14.0 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from librosa)

Requirement already satisfied (use --upgrade to upgrade): matplotlib>=1.4.3 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from librosa)

Requirement already satisfied (use --upgrade to upgrade): joblib>=0.7.0 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from librosa)

Requirement already satisfied (use --upgrade to upgrade): decorator>=3.0.0 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from librosa)

Requirement already satisfied (use --upgrade to upgrade): six>=1.3 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from librosa)

Collecting resampy>=0.1.0 (from librosa)

  Using cached resampy-0.1.2.tar.gz

Requirement already satisfied (use --upgrade to upgrade): python-dateutil in /Users/Yifan/anaconda/lib/python2.7/site-packages (from matplotlib>=1.4.3->librosa)

Requirement already satisfied (use --upgrade to upgrade): pytz in /Users/Yifan/anaconda/lib/python2.7/site-packages (from matplotlib>=1.4.3->librosa)

Requirement already satisfied (use --upgrade to upgrade): cycler in /Users/Yifan/anaconda/lib/python2.7/site-packages (from matplotlib>=1.4.3->librosa)

Requirement already satisfied (use --upgrade to upgrade): pyparsing!=2.0.4,>=1.5.6 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from matplotlib>=1.4.3->librosa)

Requirement already satisfied (use --upgrade to upgrade): Cython>=0.21 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from resampy>=0.1.0->librosa)

Building wheels for collected packages: resampy

  Running setup.py bdist_wheel for resampy ... error

  Complete output from command /Users/Yifan/anaconda/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/nt/j6lh_3rd0dn2497nhbych82c0000gn/T/pip-build-ESYpn7/resampy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /var/folders/nt/j6lh_3rd0dn2497nhbych82c0000gn/T/tmpwMSDjfpip-wheel- --python-tag cp27:

  running bdist_wheel

  running build

  running build_py

  creating build

  creating build/lib.macosx-10.5-x86_64-2.7

  creating build/lib.macosx-10.5-x86_64-2.7/resampy

  copying resampy/__init__.py -> build/lib.macosx-10.5-x86_64-2.7/resampy

  copying resampy/core.py -> build/lib.macosx-10.5-x86_64-2.7/resampy

  copying resampy/filters.py -> build/lib.macosx-10.5-x86_64-2.7/resampy

  copying resampy/version.py -> build/lib.macosx-10.5-x86_64-2.7/resampy

  creating build/lib.macosx-10.5-x86_64-2.7/resampy/data

  copying resampy/data/kaiser_best.npz -> build/lib.macosx-10.5-x86_64-2.7/resampy/data

  copying resampy/data/kaiser_fast.npz -> build/lib.macosx-10.5-x86_64-2.7/resampy/data

  running build_ext

  skipping 'resampy/interp.c' Cython extension (up-to-date)

  building 'resampy.interp' extension

  creating build/temp.macosx-10.5-x86_64-2.7

  creating build/temp.macosx-10.5-x86_64-2.7/resampy

  gcc -fno-strict-aliasing -I/Users/Yifan/anaconda/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/Yifan/anaconda/lib/python2.7/site-packages/numpy/core/include -I/Users/Yifan/anaconda/include/python2.7 -c resampy/interp.c -o build/temp.macosx-10.5-x86_64-2.7/resampy/interp.o

  xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

  error: command 'gcc' failed with exit status 1

  

  ----------------------------------------

  Failed building wheel for resampy

  Running setup.py clean for resampy

Failed to build resampy

Installing collected packages: resampy

  Running setup.py install for resampy ... error

    Complete output from command /Users/Yifan/anaconda/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/nt/j6lh_3rd0dn2497nhbych82c0000gn/T/pip-build-ESYpn7/resampy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/nt/j6lh_3rd0dn2497nhbych82c0000gn/T/pip-PwslmU-record/install-record.txt --single-version-externally-managed --compile:

    running install

    running build

    running build_py

    creating build

    creating build/lib.macosx-10.5-x86_64-2.7

    creating build/lib.macosx-10.5-x86_64-2.7/resampy

    copying resampy/__init__.py -> build/lib.macosx-10.5-x86_64-2.7/resampy

    copying resampy/core.py -> build/lib.macosx-10.5-x86_64-2.7/resampy

    copying resampy/filters.py -> build/lib.macosx-10.5-x86_64-2.7/resampy

    copying resampy/version.py -> build/lib.macosx-10.5-x86_64-2.7/resampy

    creating build/lib.macosx-10.5-x86_64-2.7/resampy/data

    copying resampy/data/kaiser_best.npz -> build/lib.macosx-10.5-x86_64-2.7/resampy/data

    copying resampy/data/kaiser_fast.npz -> build/lib.macosx-10.5-x86_64-2.7/resampy/data

    running build_ext

    skipping 'resampy/interp.c' Cython extension (up-to-date)

    building 'resampy.interp' extension

    creating build/temp.macosx-10.5-x86_64-2.7

    creating build/temp.macosx-10.5-x86_64-2.7/resampy

    gcc -fno-strict-aliasing -I/Users/Yifan/anaconda/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/Yifan/anaconda/lib/python2.7/site-packages/numpy/core/include -I/Users/Yifan/anaconda/include/python2.7 -c resampy/interp.c -o build/temp.macosx-10.5-x86_64-2.7/resampy/interp.o

    xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

    error: command 'gcc' failed with exit status 1

    

    ----------------------------------------

Command "/Users/Yifan/anaconda/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/nt/j6lh_3rd0dn2497nhbych82c0000gn/T/pip-build-ESYpn7/resampy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/nt/j6lh_3rd0dn2497nhbych82c0000gn/T/pip-PwslmU-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/nt/j6lh_3rd0dn2497nhbych82c0000gn/T/pip-build-ESYpn7/resampy/

172-16-16-223:librosa-0.4.3 Yifan$ pip install resampy

Collecting resampy

  Using cached resampy-0.1.2.tar.gz

Requirement already satisfied (use --upgrade to upgrade): numpy>=1.10 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from resampy)

Requirement already satisfied (use --upgrade to upgrade): scipy>=0.13 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from resampy)

Requirement already satisfied (use --upgrade to upgrade): six>=1.3 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from resampy)

Requirement already satisfied (use --upgrade to upgrade): Cython>=0.21 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from resampy)

Building wheels for collected packages: resampy

  Running setup.py bdist_wheel for resampy ... error

  Complete output from command /Users/Yifan/anaconda/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/nt/j6lh_3rd0dn2497nhbych82c0000gn/T/pip-build-4_DZ9L/resampy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /var/folders/nt/j6lh_3rd0dn2497nhbych82c0000gn/T/tmp_WpCkHpip-wheel- --python-tag cp27:

  running bdist_wheel

  running build

  running build_py

  creating build

  creating build/lib.macosx-10.5-x86_64-2.7

  creating build/lib.macosx-10.5-x86_64-2.7/resampy

  copying resampy/__init__.py -> build/lib.macosx-10.5-x86_64-2.7/resampy

  copying resampy/core.py -> build/lib.macosx-10.5-x86_64-2.7/resampy

  copying resampy/filters.py -> build/lib.macosx-10.5-x86_64-2.7/resampy

  copying resampy/version.py -> build/lib.macosx-10.5-x86_64-2.7/resampy

  creating build/lib.macosx-10.5-x86_64-2.7/resampy/data

  copying resampy/data/kaiser_best.npz -> build/lib.macosx-10.5-x86_64-2.7/resampy/data

  copying resampy/data/kaiser_fast.npz -> build/lib.macosx-10.5-x86_64-2.7/resampy/data

  running build_ext

  skipping 'resampy/interp.c' Cython extension (up-to-date)

  building 'resampy.interp' extension

  creating build/temp.macosx-10.5-x86_64-2.7

  creating build/temp.macosx-10.5-x86_64-2.7/resampy

  gcc -fno-strict-aliasing -I/Users/Yifan/anaconda/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/Yifan/anaconda/lib/python2.7/site-packages/numpy/core/include -I/Users/Yifan/anaconda/include/python2.7 -c resampy/interp.c -o build/temp.macosx-10.5-x86_64-2.7/resampy/interp.o

  xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

  error: command 'gcc' failed with exit status 1

  

  ----------------------------------------

  Failed building wheel for resampy

  Running setup.py clean for resampy

Failed to build resampy

Installing collected packages: resampy

  Running setup.py install for resampy ... error

    Complete output from command /Users/Yifan/anaconda/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/nt/j6lh_3rd0dn2497nhbych82c0000gn/T/pip-build-4_DZ9L/resampy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/nt/j6lh_3rd0dn2497nhbych82c0000gn/T/pip-59mPfC-record/install-record.txt --single-version-externally-managed --compile:

    running install

    running build

    running build_py

    creating build

    creating build/lib.macosx-10.5-x86_64-2.7

    creating build/lib.macosx-10.5-x86_64-2.7/resampy

    copying resampy/__init__.py -> build/lib.macosx-10.5-x86_64-2.7/resampy

    copying resampy/core.py -> build/lib.macosx-10.5-x86_64-2.7/resampy

    copying resampy/filters.py -> build/lib.macosx-10.5-x86_64-2.7/resampy

    copying resampy/version.py -> build/lib.macosx-10.5-x86_64-2.7/resampy

    creating build/lib.macosx-10.5-x86_64-2.7/resampy/data

    copying resampy/data/kaiser_best.npz -> build/lib.macosx-10.5-x86_64-2.7/resampy/data

    copying resampy/data/kaiser_fast.npz -> build/lib.macosx-10.5-x86_64-2.7/resampy/data

    running build_ext

    skipping 'resampy/interp.c' Cython extension (up-to-date)

    building 'resampy.interp' extension

    creating build/temp.macosx-10.5-x86_64-2.7

    creating build/temp.macosx-10.5-x86_64-2.7/resampy

    gcc -fno-strict-aliasing -I/Users/Yifan/anaconda/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/Yifan/anaconda/lib/python2.7/site-packages/numpy/core/include -I/Users/Yifan/anaconda/include/python2.7 -c resampy/interp.c -o build/temp.macosx-10.5-x86_64-2.7/resampy/interp.o

    xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

    error: command 'gcc' failed with exit status 1

    

    ----------------------------------------

Command "/Users/Yifan/anaconda/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/nt/j6lh_3rd0dn2497nhbych82c0000gn/T/pip-build-4_DZ9L/resampy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/nt/j6lh_3rd0dn2497nhbych82c0000gn/T/pip-59mPfC-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/nt/j6lh_3rd0dn2497nhbych82c0000gn/T/pip-build-4_DZ9L/resampy/

172-16-16-223:librosa-0.4.3 Yifan$ sudo pip install resampy

The directory '/Users/Yifan/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

The directory '/Users/Yifan/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

Collecting resampy

  Downloading resampy-0.1.2.tar.gz (442kB)

    100% |████████████████████████████████| 450kB 1.3MB/s 

Requirement already satisfied (use --upgrade to upgrade): numpy>=1.10 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from resampy)

Requirement already satisfied (use --upgrade to upgrade): scipy>=0.13 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from resampy)

Requirement already satisfied (use --upgrade to upgrade): six>=1.3 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from resampy)

Requirement already satisfied (use --upgrade to upgrade): Cython>=0.21 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from resampy)

Installing collected packages: resampy

  Running setup.py install for resampy ... error

    Complete output from command /Users/Yifan/anaconda/bin/python -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-LP7alX/resampy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-wPqSzv-record/install-record.txt --single-version-externally-managed --compile:

    running install

    running build

    running build_py

    creating build

    creating build/lib.macosx-10.5-x86_64-2.7

    creating build/lib.macosx-10.5-x86_64-2.7/resampy

    copying resampy/__init__.py -> build/lib.macosx-10.5-x86_64-2.7/resampy

    copying resampy/core.py -> build/lib.macosx-10.5-x86_64-2.7/resampy

    copying resampy/filters.py -> build/lib.macosx-10.5-x86_64-2.7/resampy

    copying resampy/version.py -> build/lib.macosx-10.5-x86_64-2.7/resampy

    creating build/lib.macosx-10.5-x86_64-2.7/resampy/data

    copying resampy/data/kaiser_best.npz -> build/lib.macosx-10.5-x86_64-2.7/resampy/data

    copying resampy/data/kaiser_fast.npz -> build/lib.macosx-10.5-x86_64-2.7/resampy/data

    running build_ext

    skipping 'resampy/interp.c' Cython extension (up-to-date)

    building 'resampy.interp' extension

    creating build/temp.macosx-10.5-x86_64-2.7

    creating build/temp.macosx-10.5-x86_64-2.7/resampy

    gcc -fno-strict-aliasing -I/Users/Yifan/anaconda/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/Yifan/anaconda/lib/python2.7/site-packages/numpy/core/include -I/Users/Yifan/anaconda/include/python2.7 -c resampy/interp.c -o build/temp.macosx-10.5-x86_64-2.7/resampy/interp.o

    xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

    error: command 'gcc' failed with exit status 1

    

    ----------------------------------------

Command "/Users/Yifan/anaconda/bin/python -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-LP7alX/resampy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-wPqSzv-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-LP7alX/resampy/

172-16-16-223:librosa-0.4.3 Yifan$ pip install librosa

Requirement already satisfied (use --upgrade to upgrade): librosa in /Users/Yifan/anaconda/lib/python2.7/site-packages/librosa-0.4.3-py2.7.egg

Requirement already satisfied (use --upgrade to upgrade): audioread>=2.0.0 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from librosa)

Requirement already satisfied (use --upgrade to upgrade): numpy>=1.8.0 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from librosa)

Requirement already satisfied (use --upgrade to upgrade): scipy>=0.13.0 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from librosa)

Requirement already satisfied (use --upgrade to upgrade): scikit-learn>=0.14.0 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from librosa)

Requirement already satisfied (use --upgrade to upgrade): matplotlib>=1.4.3 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from librosa)

Requirement already satisfied (use --upgrade to upgrade): joblib>=0.7.0 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from librosa)

Requirement already satisfied (use --upgrade to upgrade): decorator>=3.0.0 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from librosa)

Requirement already satisfied (use --upgrade to upgrade): six>=1.3 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from librosa)

Collecting resampy>=0.1.0 (from librosa)

  Using cached resampy-0.1.2.tar.gz

Requirement already satisfied (use --upgrade to upgrade): python-dateutil in /Users/Yifan/anaconda/lib/python2.7/site-packages (from matplotlib>=1.4.3->librosa)

Requirement already satisfied (use --upgrade to upgrade): pytz in /Users/Yifan/anaconda/lib/python2.7/site-packages (from matplotlib>=1.4.3->librosa)

Requirement already satisfied (use --upgrade to upgrade): cycler in /Users/Yifan/anaconda/lib/python2.7/site-packages (from matplotlib>=1.4.3->librosa)

Requirement already satisfied (use --upgrade to upgrade): pyparsing!=2.0.4,>=1.5.6 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from matplotlib>=1.4.3->librosa)

Requirement already satisfied (use --upgrade to upgrade): Cython>=0.21 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from resampy>=0.1.0->librosa)

Building wheels for collected packages: resampy

  Running setup.py bdist_wheel for resampy ... error

  Complete output from command /Users/Yifan/anaconda/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/nt/j6lh_3rd0dn2497nhbych82c0000gn/T/pip-build-dHH7G2/resampy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /var/folders/nt/j6lh_3rd0dn2497nhbych82c0000gn/T/tmp59zseLpip-wheel- --python-tag cp27:

  running bdist_wheel

  running build

  running build_py

  creating build

  creating build/lib.macosx-10.5-x86_64-2.7

  creating build/lib.macosx-10.5-x86_64-2.7/resampy

  copying resampy/__init__.py -> build/lib.macosx-10.5-x86_64-2.7/resampy

  copying resampy/core.py -> build/lib.macosx-10.5-x86_64-2.7/resampy

  copying resampy/filters.py -> build/lib.macosx-10.5-x86_64-2.7/resampy

  copying resampy/version.py -> build/lib.macosx-10.5-x86_64-2.7/resampy

  creating build/lib.macosx-10.5-x86_64-2.7/resampy/data

  copying resampy/data/kaiser_best.npz -> build/lib.macosx-10.5-x86_64-2.7/resampy/data

  copying resampy/data/kaiser_fast.npz -> build/lib.macosx-10.5-x86_64-2.7/resampy/data

  running build_ext

  skipping 'resampy/interp.c' Cython extension (up-to-date)

  building 'resampy.interp' extension

  creating build/temp.macosx-10.5-x86_64-2.7

  creating build/temp.macosx-10.5-x86_64-2.7/resampy

  gcc -fno-strict-aliasing -I/Users/Yifan/anaconda/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/Yifan/anaconda/lib/python2.7/site-packages/numpy/core/include -I/Users/Yifan/anaconda/include/python2.7 -c resampy/interp.c -o build/temp.macosx-10.5-x86_64-2.7/resampy/interp.o

  xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

  error: command 'gcc' failed with exit status 1

  

  ----------------------------------------

  Failed building wheel for resampy

  Running setup.py clean for resampy

Failed to build resampy

Installing collected packages: resampy

  Running setup.py install for resampy ... error

    Complete output from command /Users/Yifan/anaconda/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/nt/j6lh_3rd0dn2497nhbych82c0000gn/T/pip-build-dHH7G2/resampy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/nt/j6lh_3rd0dn2497nhbych82c0000gn/T/pip-7zsF6T-record/install-record.txt --single-version-externally-managed --compile:

    running install

    running build

    running build_py

    creating build

    creating build/lib.macosx-10.5-x86_64-2.7

    creating build/lib.macosx-10.5-x86_64-2.7/resampy

    copying resampy/__init__.py -> build/lib.macosx-10.5-x86_64-2.7/resampy

    copying resampy/core.py -> build/lib.macosx-10.5-x86_64-2.7/resampy

    copying resampy/filters.py -> build/lib.macosx-10.5-x86_64-2.7/resampy

    copying resampy/version.py -> build/lib.macosx-10.5-x86_64-2.7/resampy

    creating build/lib.macosx-10.5-x86_64-2.7/resampy/data

    copying resampy/data/kaiser_best.npz -> build/lib.macosx-10.5-x86_64-2.7/resampy/data

    copying resampy/data/kaiser_fast.npz -> build/lib.macosx-10.5-x86_64-2.7/resampy/data

    running build_ext

    skipping 'resampy/interp.c' Cython extension (up-to-date)

    building 'resampy.interp' extension

    creating build/temp.macosx-10.5-x86_64-2.7

    creating build/temp.macosx-10.5-x86_64-2.7/resampy

    gcc -fno-strict-aliasing -I/Users/Yifan/anaconda/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/Yifan/anaconda/lib/python2.7/site-packages/numpy/core/include -I/Users/Yifan/anaconda/include/python2.7 -c resampy/interp.c -o build/temp.macosx-10.5-x86_64-2.7/resampy/interp.o

    xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

    error: command 'gcc' failed with exit status 1

    

    ----------------------------------------

Command "/Users/Yifan/anaconda/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/nt/j6lh_3rd0dn2497nhbych82c0000gn/T/pip-build-dHH7G2/resampy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/nt/j6lh_3rd0dn2497nhbych82c0000gn/T/pip-7zsF6T-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/nt/j6lh_3rd0dn2497nhbych82c0000gn/T/pip-build-dHH7G2/resampy/

172-16-16-223:librosa-0.4.3 Yifan$ 

172-16-16-223:librosa-0.4.3 Yifan$ pip install librosa

Requirement already satisfied (use --upgrade to upgrade): librosa in /Users/Yifan/anaconda/lib/python2.7/site-packages/librosa-0.4.3-py2.7.egg

Requirement already satisfied (use --upgrade to upgrade): audioread>=2.0.0 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from librosa)

Requirement already satisfied (use --upgrade to upgrade): numpy>=1.8.0 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from librosa)

Requirement already satisfied (use --upgrade to upgrade): scipy>=0.13.0 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from librosa)

Requirement already satisfied (use --upgrade to upgrade): scikit-learn>=0.14.0 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from librosa)

Requirement already satisfied (use --upgrade to upgrade): matplotlib>=1.4.3 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from librosa)

Requirement already satisfied (use --upgrade to upgrade): joblib>=0.7.0 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from librosa)

Requirement already satisfied (use --upgrade to upgrade): decorator>=3.0.0 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from librosa)

Requirement already satisfied (use --upgrade to upgrade): six>=1.3 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from librosa)

Collecting resampy>=0.1.0 (from librosa)

  Using cached resampy-0.1.2.tar.gz

Requirement already satisfied (use --upgrade to upgrade): python-dateutil in /Users/Yifan/anaconda/lib/python2.7/site-packages (from matplotlib>=1.4.3->librosa)

Requirement already satisfied (use --upgrade to upgrade): pytz in /Users/Yifan/anaconda/lib/python2.7/site-packages (from matplotlib>=1.4.3->librosa)

Requirement already satisfied (use --upgrade to upgrade): cycler in /Users/Yifan/anaconda/lib/python2.7/site-packages (from matplotlib>=1.4.3->librosa)

Requirement already satisfied (use --upgrade to upgrade): pyparsing!=2.0.4,>=1.5.6 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from matplotlib>=1.4.3->librosa)

Requirement already satisfied (use --upgrade to upgrade): Cython>=0.21 in /Users/Yifan/anaconda/lib/python2.7/site-packages (from resampy>=0.1.0->librosa)

Building wheels for collected packages: resampy

  Running setup.py bdist_wheel for resampy ... error

  Complete output from command /Users/Yifan/anaconda/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/nt/j6lh_3rd0dn2497nhbych82c0000gn/T/pip-build-5CpQE3/resampy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /var/folders/nt/j6lh_3rd0dn2497nhbych82c0000gn/T/tmpAe2qYzpip-wheel- --python-tag cp27:

  running bdist_wheel

  running build

  running build_py

  creating build

  creating build/lib.macosx-10.5-x86_64-2.7

  creating build/lib.macosx-10.5-x86_64-2.7/resampy

  copying resampy/__init__.py -> build/lib.macosx-10.5-x86_64-2.7/resampy

  copying resampy/core.py -> build/lib.macosx-10.5-x86_64-2.7/resampy

  copying resampy/filters.py -> build/lib.macosx-10.5-x86_64-2.7/resampy

  copying resampy/version.py -> build/lib.macosx-10.5-x86_64-2.7/resampy

  creating build/lib.macosx-10.5-x86_64-2.7/resampy/data

  copying resampy/data/kaiser_best.npz -> build/lib.macosx-10.5-x86_64-2.7/resampy/data

  copying resampy/data/kaiser_fast.npz -> build/lib.macosx-10.5-x86_64-2.7/resampy/data

  running build_ext

  skipping 'resampy/interp.c' Cython extension (up-to-date)

  building 'resampy.interp' extension

  creating build/temp.macosx-10.5-x86_64-2.7

  creating build/temp.macosx-10.5-x86_64-2.7/resampy

  gcc -fno-strict-aliasing -I/Users/Yifan/anaconda/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/Yifan/anaconda/lib/python2.7/site-packages/numpy/core/include -I/Users/Yifan/anaconda/include/python2.7 -c resampy/interp.c -o build/temp.macosx-10.5-x86_64-2.7/resampy/interp.o

  xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

  error: command 'gcc' failed with exit status 1

  

  ----------------------------------------

  Failed building wheel for resampy

  Running setup.py clean for resampy

Failed to build resampy

Installing collected packages: resampy

  Running setup.py install for resampy ... error

    Complete output from command /Users/Yifan/anaconda/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/nt/j6lh_3rd0dn2497nhbych82c0000gn/T/pip-build-5CpQE3/resampy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/nt/j6lh_3rd0dn2497nhbych82c0000gn/T/pip-gk36eT-record/install-record.txt --single-version-externally-managed --compile:

    running install

    running build

    running build_py

    creating build

    creating build/lib.macosx-10.5-x86_64-2.7

    creating build/lib.macosx-10.5-x86_64-2.7/resampy

    copying resampy/__init__.py -> build/lib.macosx-10.5-x86_64-2.7/resampy

    copying resampy/core.py -> build/lib.macosx-10.5-x86_64-2.7/resampy

    copying resampy/filters.py -> build/lib.macosx-10.5-x86_64-2.7/resampy

    copying resampy/version.py -> build/lib.macosx-10.5-x86_64-2.7/resampy

    creating build/lib.macosx-10.5-x86_64-2.7/resampy/data

    copying resampy/data/kaiser_best.npz -> build/lib.macosx-10.5-x86_64-2.7/resampy/data

    copying resampy/data/kaiser_fast.npz -> build/lib.macosx-10.5-x86_64-2.7/resampy/data

    running build_ext

    skipping 'resampy/interp.c' Cython extension (up-to-date)

    building 'resampy.interp' extension

    creating build/temp.macosx-10.5-x86_64-2.7

    creating build/temp.macosx-10.5-x86_64-2.7/resampy

    gcc -fno-strict-aliasing -I/Users/Yifan/anaconda/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/Yifan/anaconda/lib/python2.7/site-packages/numpy/core/include -I/Users/Yifan/anaconda/include/python2.7 -c resampy/interp.c -o build/temp.macosx-10.5-x86_64-2.7/resampy/interp.o

    xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

    error: command 'gcc' failed with exit status 1

    

    ----------------------------------------

Command "/Users/Yifan/anaconda/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/nt/j6lh_3rd0dn2497nhbych82c0000gn/T/pip-build-5CpQE3/resampy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/nt/j6lh_3rd0dn2497nhbych82c0000gn/T/pip-gk36eT-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/nt/j6lh_3rd0dn2497nhbych82c0000gn/T/pip-build-5CpQE3/resampy/

Brian McFee

unread,
Jun 6, 2016, 4:34:33 PM6/6/16
to librosa
This looks like a problem with your development environment; possibly a problem with xcode?

To narrow the problem, it's strictly to do with installing resampy, not librosa.

I have no experience with macos, sorry.  Maybe someone else on here can chime in?

Rainer Schmidt

unread,
Jun 1, 2017, 7:31:47 AM6/1/17
to librosa
Try using "conda install -c conda-forge librosa" instead of ''sudo pip install librosa''.

--Rainer

Jeff Treviño

unread,
Jun 13, 2017, 6:09:03 PM6/13/17
to librosa
The docs say "pip install librosa" should work -- is there any way for pip install to succeed? (I get "no module named librosa" after pip install.)

Jeff Treviño

unread,
Jun 20, 2017, 2:57:43 AM6/20/17
to librosa
I had the same problem with pip, and I finally used easy_install:
sudo easy_install numpy
sudo easy_install librosa

I seem to be able to import and use the library just fine now, without Anaconda.
Reply all
Reply to author
Forward
0 new messages