小编bot*_*bot的帖子

Jupyter Anaconda:将文本文件加载到 python 中

我在 Mac 上运行 Anaconda Python 和 Jupyter。键入以下代码后:

import numpy as np
import matplotlib.pyplot as plt
iris = np.genfromtxt("data/iris.txt",delimiter=None) 
Run Code Online (Sandbox Code Playgroud)

我收到错误:IOError: data/iris.txt not found. 我尝试将 iris 文件放在 anaconda 文件夹中:Users/anaconda/lib/python2.7

python anaconda jupyter jupyter-notebook

2
推荐指数
1
解决办法
7万
查看次数

标签 统计

anaconda ×1

jupyter ×1

jupyter-notebook ×1

python ×1