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

使用pip安装mindsdb库时出现subprocess-exited-with-error错误求助

解决pip安装MindsDB时找不到requirements.txt的错误

问题现象

使用pip安装MindsDB时触发如下错误:

Collecting mindsdb
  Using cached MindsDB-23.6.1.1.tar.gz (6.2 MB)
  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
  ╰─> [18 lines of output]
      Traceback (most recent call last):
        File "C:\Users\Neelesh\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
          main()
        File "C:\Users\Neelesh\AppData\Local\Programs\Python\Python310\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\Neelesh\AppData\Local\Programs\Python\Python310\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\Neelesh\AppData\Local\Temp\pip-build-env-v9b2a_j0\overlay\Lib\site-packages\setuptools\build_meta.py", line 341, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
        File "C:\Users\Neelesh\AppData\Local\Temp\pip-build-env-v9b2a_j0\overlay\Lib\site-packages\setuptools\build_meta.py", line 323, in _get_build_requires
          self.run_setup()
        File "C:\Users\Neelesh\AppData\Local\Temp\pip-build-env-v9b2a_j0\overlay\Lib\site-packages\setuptools\build_meta.py", line 487, in run_setup
          super(_BuildMetaLegacyBackend,
        File "C:\Users\Neelesh\AppData\Local\Temp\pip-build-env-v9b2a_j0\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in run_setup
          exec(code, locals())
        File "<string>", line 87, in <module>
        File "<string>", line 41, in define_deps
      FileNotFoundError: [Errno 2] No such file or directory: 'requirements\\requirements.txt'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with 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

已尝试以下命令但未解决问题:

pip install mindsdb
pip install mindsdb --pre
pip install --upgrade pip

解决方案

  • 安装指定稳定版本:23.6.1.1版本的源码包存在文件缺失问题,直接安装更新的正式版即可:
    pip install mindsdb==23.10.0.4
    
  • 从GitHub源码编译安装:如果指定版本仍有问题,克隆官方仓库手动安装依赖:
    git clone https://github.com/mindsdb/mindsdb.git
    cd mindsdb
    pip install -r requirements/requirements.txt
    pip install .
    
  • 使用虚拟环境隔离依赖:避免全局依赖冲突,创建虚拟环境后再安装:
    # 创建虚拟环境
    python -m venv mindsdb_env
    # Windows激活环境
    .\mindsdb_env\Scripts\activate
    # Linux/macOS激活环境
    source mindsdb_env/bin/activate
    # 安装MindsDB
    pip install mindsdb
    

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.07.18 05:33:29