python安装plotly时出现read time out_开始使用plotly时出现导入错误

似乎有正确的库和Python版本,尽管我在plotly导入时得到AttributeError。不知道是否有人有同样的问题,请参阅下面的版本和stacktrace:Python 2.7.5+ (default, Feb 27 2014, 19:37:08)

Type "copyright", "credits" or "license" for more information.

IPython 2.0.0 -- An enhanced Interactive Python.

? -> Introduction and overview of IPython's features.

%quickref -> Quick reference.

help -> Python's own help system.

object? -> Details about 'object', use 'object??' for extra details.

In [1]: import numpy

In [2]: numpy.__version__

Out[2]: '1.8.1'

In [3]: import pandas

In [4]: pandas.__version__

Out[4]: '0.13.1'

In [5]: import plotly

---------------------------------------------------------------------------

AttributeError Traceback (most recent call last)

in ()

----> 1 import plotly

/usr/local/lib/python2.7/dist-packages/plotly/__init__.py in ()

29 from __future__ import absolute_import

30

---> 31 from plotly import plotly, graph_objs, tools, utils

32 from plotly.version import __version__

/usr/local/lib/python2.7/dist-packages/plotly/plotly/__init__.py in ()

10 from __future__ import absolute_import

11

---> 12 from plotly.plotly.plotly import *

13

14 __all__ = ["sign_in", "update_plot_options", "get_plot_options",

/usr/local/lib/python2.7/dist-packages/plotly/plotly/plotly.py in ()

27 from plotly.plotly import chunked_requests

28 from plotly import utils

---> 29 from plotly import tools

30 from plotly import exceptions

31 from plotly import version

/usr/local/lib/python2.7/dist-packages/plotly/tools.py in ()

18 from plotly import exceptions

19

---> 20 from . graph_objs import graph_objs

21

22 # Warning format

/usr/local/lib/python2.7/dist-packages/plotly/graph_objs/__init__.py in ()

10 from __future__ import absolute_import

11

---> 12 from plotly.graph_objs.graph_objs import *

13

14 __all__ = ["Data",

/usr/local/lib/python2.7/dist-packages/plotly/graph_objs/graph_objs.py in ()

279 return super(DictMeta, mcs).__new__(mcs, name, bases, attrs)

280

--> 281 @six.add_metaclass(ListMeta)

282 class PlotlyList(list):

283 """A container for PlotlyDicts, inherits from standard list.

AttributeError: 'module' object has no attribute 'add_metaclass'

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值