Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要将一些大(2 Gb+)文件解析成 python。我已经尝试使用 json 模块,但我得到一个内存错误,因为它的方法都一次加载文件。然后我继续安装 ijson,它可能实现了一种基于迭代器的文件解析方式。但是,当我运行时:
导入 ijson
我得到异常:未找到 YAJL 共享对象。
有没有人发现类似的问题?任何帮助将不胜感激
问候
这很简单,那是因为你还没有安装 YAJL C 库!ijson 是 YAJL 的包装器,没有它是行不通的。
我通过 Anaconda 安装了它,然后它突然开始工作了。