【发布时间】:2016-11-18 13:40:04
【问题描述】:
我正在参加 Coursera 上的 ML 课程,但在使用 SFrame 打开文件时遇到问题,当我尝试时,出现以下错误:
sf = graphlab.Sframe.read_csv('people.csv')
******AttributeError Traceback (most recent call last)
<ipython-input-29-42b242f73eda> in <module>()
----> 1 sf = graphlab.Sframe.read_csv('people.csv')
AttributeError: 'module' object has no attribute 'Sframe'******
我也尝试运行 Kernel > Restart
NameError Traceback (most recent call last)
<ipython-input-28-07d139e1ed65> in <module>()
----> 1 Kernel > Restart
NameError: name 'Kernel' is not defined
我是 Python 新手,谁能帮帮我?
【问题讨论】:
-
打印
graphlab.__file__以确保您实际导入的是graphlab包,而不是当前工作目录中名为 graphlab.