繁体   English   中英

运行Spotify python脚本时出错

[英]error when running spotify python script

嗨,我尝试在我的Mac https://github.com/swinton/starrify上为Spotify运行一个名为python的脚本,称为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

pyspotify没有正确安装(或者您没有运行用于安装它的python解释器)。 您可以使用pip install pyspotify进行pip install pyspotify 然后,您应该能够在脚本中import spotify并使其成功。 您也可以尝试先运行pyspotify 示例脚本

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM