嗨,我在安装pyspotify
时遇到问题。我想我已经安装了development headers和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/
这表明它找不到开发标头:
您是否考虑过从http://apt.mopidy.com安装预编译的python spotify Debian包,或者甚至只是从那里安装libspotify dev,以便正确安装开发头文件?在
相关问题 更多 >
编程相关推荐