我正在尝试构建一个基于输入字符串创建 Spotify 播放列表的 Python 程序。我正在使用 pyspotify 包装器和 Spotify API(libspotify,包括许可证密钥)。要安装包含 libspotify 链接的 pyspotify 包装器,我克隆了 git 存储库(现在甚至不知道这个的含义,但我认为这就是我所做的),然后运行安装的 Xcode4,并加载命令行工具。然后运行: sudo python setup.py install 按照http://pyspotify.mopidy.com/en/latest/introduction/的说明进行安装。
但是,我收到错误消息:
clang: warning: argument unused during compilation: '-mno-fused-madd'
src/module.c:3:10: fatal error: 'libspotify/api.h' file not found
#include "libspotify/api.h"
^
1 error generated.
error: command 'clang' failed with exit status 1
该api.h
文件与文件夹和应用程序密钥pyspotify
一起位于文件夹中。libspotify
我需要做什么才能安装 pyspotify?
谢谢您的帮助!
/埃里克