运行spotify python scrip时出错

2024-10-01 00:24:07 发布

您现在位置:Python中文网/ 问答频道 /正文

嗨,我正在尝试在我的mac上运行一个名为starrify的spotify脚本 https://github.com/swinton/starrify

我在运行它时遇到了这个错误

error "Traceback (most recent call last):
File \"/Users/hnewbs/Documents/star/starrify.py\", line 7, in <module>
from spotify import Link
ImportError: No module named spotify" number 1

有什么办法解决这个问题吗?谢谢

我按照以下说明重新安装pyspotify来修复它http://labs.tinkerista.com/?p=9


Tags: httpsgithub脚本commostmac错误error
1条回答
网友
1楼 · 发布于 2024-10-01 00:24:07

pyspotify安装不正确(或者您运行的python解释器与安装它时使用的不同)。您可以使用pip install pyspotify安装它。然后您应该能够在脚本中import spotify,并使其成功。您也可以尝试先运行pyspotifyexample script。在

相关问题 更多 >