安装pyspotify的错误

时间:2016-05-21 15:28:41

标签: python debian pip

您好我在安装pyspotify时遇到问题。我想我已经安装了开发标题和libffi包但我仍然遇到错误,这是当我尝试使用pip安装它时会发生什么:

warning: manifest_maker: standard file '-c' not found

reading manifest file 'pyspotify.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'examples/tmp'
warning: no previously-included files matching '__pycache__/*' found anywhere in distribution
writing manifest file 'pyspotify.egg-info/SOURCES.txt'
copying spotify/api.h -> build/lib.linux-armv7l-3.4/spotify
copying spotify/api.processed.h -> build/lib.linux-armv7l-3.4/spotify
running build_ext
generating cffi module 'build/temp.linux-armv7l-3.4/spotify._spotify.c'
creating build/temp.linux-armv7l-3.4
building 'spotify._spotify' extension
creating build/temp.linux-armv7l-3.4/build
creating build/temp.linux-armv7l-3.4/build/temp.linux-armv7l-3.4
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c build/temp.linux-armv7l-3.4/spotify._spotify.c -o build/temp.linux-armv7l-3.4/build/temp.linux-armv7l-3.4/spotify._spotify.o
build/temp.linux-armv7l-3.4/spotify._spotify.c:422:28: fatal error: libspotify/api.h: No such file or directory
 #include "libspotify/api.h"
Command "/usr/bin/python3 -u -c "import setuptools,
tokenize;__file__='/tmp/pip-build-f_0drg24/pyspotify/setup.py';exec(compile(getattr(tokenize,
'open', open)(__file__).read().replace('\r\n', '\n'), __file__,
'exec'))" install --record /tmp/pip-dn3q3awz-record/install-record.txt
--single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-f_0drg24/pyspotify/

1 个答案:

答案 0 :(得分:0)

这表明找不到开发标题:

build/temp.linux-armv7l-3.4/spotify._spotify.c:422:28: fatal error: libspotify/api.h: No such file or directory

您是否考虑从http://apt.mopidy.com安装预编译的python-spotify Debian软件包,或者甚至从那里安装libspotify-dev,以正确安装开发头文件?