python - 无法在 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
请帮我解决一下这个。谢谢你。
解决方案
要解决此错误,您需要先导入 turicreate。要导入 turicreate,请使用以下命令:
import turicreate as tc
推荐阅读
- html - 如何用 CSS 放置一个心形按钮
- javascript - 使用 Filepond 库上传
- c# - 对同一主机上的其他应用程序的异步影响 (IIS)
- javascript - 我无法向鼠标 p5.js 旋转正方形,使其保持在中心
- stripe-payments - Stripe - 使用 3DS 的订阅计划
- json - 在颤动中将JSON数据添加到列表时出错
- r - 如何在动物园对象时间序列中绘制边缘以突出显示一个时期?
- android - 如何下载最新版本的 Android SDK for Visual Studio .NET 2017
- python - 在 Windows 上安装 psycopg2 时出错
- java - Java序列化,为什么保存到数据库时没有序列化异常?