3

我正在尝试使用 JSON 流媒体来解析一个 11gb 的大型 JSON 文件。JSONstreamer 似乎是唯一一个无需先将整个文件加载到内存即可流式传输文件的包。

当我尝试在 python 中导入 jsonstreamer 时,出现此错误。

OSError: Yajl cannot be found.

当我尝试 pip install yajl 我得到这个错误:

File "C:\Python34\lib\subprocess.py", line 1112, in _execute_child startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

但是所有文件都在那里

我从他们的网页下载了 yajl.dll 文件并将其添加到我的 C:\Windows\SysWOW64 目录中。

真的不知道如何继续,因为我似乎被困住了。

4

1 回答 1

0

我有同样的问题,它修复了在机器上安装 git:在 pip3 脚本中存在对它的依赖。

关键在日志上,你可以看到一个 git 子进程是如何执行的:

Running setup.py (path:/tmp/pip-build-01hs0gev/yajl/setup.py) egg_info for package yajl
Traceback (most recent call last):
  File "<string>", line 17, in <module>
  File "/tmp/pip-build-01hs0gev/yajl/setup.py", line 64, in <module>
    subprocess.call(['git', 'submodule', 'update',])
  File "/usr/lib/python3.4/subprocess.py", line 537, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.4/subprocess.py", line 859, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.4/subprocess.py", line 1457, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'git'
于 2016-03-01T14:37:23.807 回答