警告:不建议使用非元组序列进行多维索引

使用scipy模块时出现警告:FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use arr[tuple(seq)] instead of arr[seq]. In the future this will be interpreted as an array index, arr[np.array(seq)], which will result either in an error or a different result.

这种警告不影响执行,是因为scipy模块版本太低,更新后警告消失,更新:

pip install --upgrade scipy

你可能感兴趣的:(Python)