[英]Import error on 'from six import raise_from'
I'm trying to use the gmusicapi( https://github.com/simon-weber/gmusicapi ). 我正在尝试使用gmusicapi( https://github.com/simon-weber/gmusicapi )。 However when I try the following line:
但是,当我尝试以下行时:
from gmusicapi import Webclient
I get the following error message: 我收到以下错误消息:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/gmusicapi-10.0.2rc1-py2.7.egg/gmusicapi/__init__.py", line 4, in <module>
from gmusicapi.clients import Webclient, Musicmanager, Mobileclient
File "/usr/local/lib/python2.7/dist-packages/gmusicapi-10.0.2rc1-py2.7.egg/gmusicapi/clients/__init__.py", line 2, in <module>
from gmusicapi.clients.webclient import Webclient
File "/usr/local/lib/python2.7/dist-packages/gmusicapi-10.0.2rc1-py2.7.egg/gmusicapi/clients/webclient.py", line 11, in <module>
from gmusicapi.protocol import webclient
File "/usr/local/lib/python2.7/dist-packages/gmusicapi-10.0.2rc1-py2.7.egg/gmusicapi/protocol/webclient.py", line 6, in <module>
from six import raise_from
ImportError: cannot import name raise_from
I'm not sure why I am unable to import raise_from. 我不确定为什么我不能导入raise_from。
I'm running python2.7.6 with six version at 1.5.2 我正在以1.5.2的六个版本运行python2.7.6
It works fine for me. 这对我来说可以。 And I have python 2.7.5.
我有python 2.7.5。
Try this pip install --upgrade six
尝试此
pip install --upgrade six
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.