You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Windows10+Python3.13下pip安装fastparquet时出现子进程错误

安装fastparquet时遭遇FileNotFoundError错误

问题

执行pip install fastparquet时出现FileNotFoundError: [WinError 2] The system cannot find the file specified错误,已尝试以下操作但无效:

  • 以管理员身份运行CMD
  • 安装Visual Studio构建工具
  • 升级pip

错误日志如下:

C:\Users\james>pip install fastparquet
Collecting fastparquet
  Using cached fastparquet-2024.5.0.tar.gz (466 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [46 lines of output]
      Traceback (most recent call last):
        File "C:\Users\james\AppData\Local\Programs\Python\Python313\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
          main()
        File "C:\Users\james\AppData\Local\Programs\Python\Python313\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "C:\Users\james\AppData\Local\Programs\Python\Python313\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
        File "C:\Users\james\AppData\Local\Temp\pip-build-env-rd0qa88v\overlay\Lib\site-packages\setuptools\build_meta.py", line 334, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
        File "C:\Users\james\AppData\Local\Temp\pip-build-env-rd0qa88v\overlay\Lib\site-packages\setuptools\build_meta.py", line 304, in _get_build_requires
          self.run_setup()
        File "C:\Users\james\AppData\Local\Temp\pip-build-env-rd0qa88v\overlay\Lib\site-packages\setuptools\build_meta.py", line 522, in run_setup
          super().run_setup(setup_script=setup_script)
        File "C:\Users\james\AppData\Local\Temp\pip-build-env-rd0qa88v\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup
          exec(code, locals())
        File "<string>", line 47, in <module>
        File "C:\Users\james\AppData\Local\Programs\Python\Python313\Lib\subprocess.py", line 395, in call
          with Popen(*popenargs, **kwargs) as p:
        File "C:\Users\james\AppData\Local\Programs\Python\Python313\Lib\subprocess.py", line 1036, in __init__
          self._execute_child(args, executable, preexec_fn, close_fds,
                              pass_fds, cwd, env,
          ...<5 lines>...
                              gid, gids, uid, umask,
                              start_new_session, process_group)
        File "C:\Users\james\AppData\Local\Programs\Python\Python313\Lib\subprocess.py", line 1548, in _execute_child
          hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
                                   # no special security
          ...<4 lines>...
                                   cwd,
                                   startupinfo)
      FileNotFoundError: [WinError 2] The system cannot find the file specified
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.

[notice] A new release of pip is available: 24.2 -> 24.3.1
[notice] To update, run: python.exe -m pip install --upgrade pip
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

解决方案

1. 安装预编译wheel包,避免源码编译

fastparquet提供Windows平台的预编译wheel,无需本地编译。执行以下命令:

pip uninstall -y fastparquet
pip install fastparquet==2024.5.0 --only-binary :all:

如果仍报错,尝试安装更早的稳定版本:

pip install fastparquet==2023.10.0 --only-binary :all:

2. 使用Visual Studio开发者命令行执行安装

编译依赖的工具可能未在普通CMD的PATH中,打开Visual Studio Developer Command Prompt(对应你的构建工具版本),再执行pip install fastparquet。

3. 降级Python版本

你当前使用的Python 3.13是较新版本,fastparquet 2024.5.0对其兼容性可能不足。降级到Python 3.12后重新安装,大概率能解决问题。

内容的提问来源于stack exchange,提问作者Robsmith

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.16 10:09:55