首页 > 解决方案 > 无法在 Jupyter 笔记本中使用 Turi Create

问题描述

我安装了 Jupyter notebook 和 TuriCreate,然后我在 jupyter notebook 中导入了 Turicreate。之后使用 turicreate 我写道:

sf = turicreate.SFrame('people-example.csv')`

(people-example.csv 是我想使用的文件)但它显示了这个错误:

NameError                                 Traceback (most recent call last)
<ipython-input-15-bcf297396ba4> in <module>
----> 1 sf = turicreate.SFrame('people-example.csv')

NameError: name 'turicreate' is not defined

请帮我解决一下这个。谢谢你。

标签: pythonjupyter-notebookturi-create

解决方案


要解决此错误,您需要先导入 turicreate。要导入 turicreate,请使用以下命令:

    import turicreate as tc

推荐阅读