gpt4 book ai didi

python - 'from six import raise_from' 导入错误

转载 作者:行者123 更新时间:2023-11-28 21:09:13 24 4
gpt4 key购买 nike

我正在尝试使用 gmusicapi( https://github.com/simon-weber/gmusicapi )。但是,当我尝试以下行时:

from gmusicapi import Webclient

我收到以下错误消息:

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

我不确定为什么我无法导入 raise_from。

我在 1.5.2 上运行 python2.7.6 和六个版本

最佳答案

它对我来说很好用。我有 python 2.7.5。

试试这个 pip install --upgrade six

关于python - 'from six import raise_from' 导入错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38644575/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com