graphlab SFrame.show() 问题
导入数据后运行show后总报错,找不到解决办法啊,有前辈遇到过没有?
AttributeErrorTraceback (most recent call last)
<ipython-input-14-f3e970a4cdcd> in <module>()
----> 1 graphlab.SFrame('datas/home_data.gl/').show()
C:\ProgramData\Anaconda3\envs\python2.7\lib\site-packages\graphlab\data_structures\sframe.pyc in show(self, columns, view, x, y)
4950 __LOGGER__.warn("Column selection for SFrame.show is deprecated. To show only certain columns, use the sf[['column1', 'column2']] syntax or construct a new SFrame with the desired columns.")
4951 from ..visualization.show import show
-> 4952 show(self, view=view, x=x, y=y)
4953
4954 def pack_columns(self, columns=None, column_prefix=None, dtype=list,
C:\ProgramData\Anaconda3\envs\python2.7\lib\site-packages\multipledispatch\dispatcher.pyc in __call__(self, *args, **kwargs)
208 self._cache[types] = func
209 try:
--> 210 return func(*args, **kwargs)
211
212 except MDNotImplementedError:
C:\ProgramData\Anaconda3\envs\python2.7\lib\site-packages\graphlab\canvas\glc_display_dispatch.pyc in show(obj, **kwargs)
8 import graphlab.canvas.views.sframe
9 graphlab.canvas.inspect.find_vars(obj)
---> 10 return graphlab.canvas.show(graphlab.canvas.views.sframe.SFrameView(obj, params=kwargs))
11
12
C:\ProgramData\Anaconda3\envs\python2.7\lib\site-packages\graphlab\canvas\utils.pyc in show(variable)
127 """
128 if variable is not None:
--> 129 get_target().state.set_selected_variable(variable)
130 variable.validate_js_component_name(variable.get_js_component())
131 return get_target().show()
AttributeError: 'NoneType' object has no attribute 'state'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
自己解决了,之前实在anaconda3下新建虚拟环境python2.7,所以会报错
下载anconda2在安装graphlab环境就好了,希望对需要的人有帮助。