python-3.x - OSError : Failed to interpret file 'name.data' as a pickle

标签 python-3.x compiler-errors

我正在尝试加载此文件。
但是,Python3说“OSError:无法将文件'D:/USER/Downloads/wine.data'解释为泡菜”。

如何加载此文件?

我在此之后使用的代码
数据= np.load(“D:/USER/Downloads/wine.data”)

最佳答案

我有同样的问题。就我而言,是numpy的较新版本引起了问题。

尝试安装numpy版本1.12.0

点安装numpy == 1.12.0

关于python-3.x - OSError : Failed to interpret file 'name.data' as a pickle,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58237039/

相关文章:

xamarin - 编译Xamarin Forms新项目时出错

python - 如何比较两个文件作为单元测试的一部分,同时在不匹配的情况下获得有用的输出?

python - 将列表的元素提升到另一个列表中指示的权力

python - Python 中具有 2 个列表的 ListAccess(list) 类

c++ - 使用 Nvidia GPU Computing 工具包和 Cygwin with Eclipse 编译错误

python - 如何忽略 OSError : [Errno 2] in Python, os linux、usbtmc

python-3.x - 查找两个长度不等的字符串之间的差异

python3 线程输出帮助。这是正确的输出吗?

c++ - 找不到过载成员

c++ - 将 'this' 指针从项目转换为常量项目和编译器错误