鍍金池/ 問答/人工智能  Linux/ graphlab SFrame.show() 問題

graphlab SFrame.show() 問題

導(dǎo)入數(shù)據(jù)后運行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'
回答
編輯回答
厭遇

自己解決了,之前實在anaconda3下新建虛擬環(huán)境python2.7,所以會報錯
下載anconda2在安裝graphlab環(huán)境就好了,希望對需要的人有幫助。

2018年2月4日 11:58