pip安装库报错”This error originates from a subprocess”的解决方法

  • 前言
  • 二、使用步骤
  • 1.引入库
  • 2.读入数据
  • 总结
  •  


    一、报错原因

    安装库时出现以下报错

    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: -11
    ╰─> See above for output.
    
    note: This error originates from a subprocess, and is likely not a problem with pip.

    python版本与安装库的版本不一致报错

    二、解决方法

    查看要安装的库的版本:

    我的python版本3.10所以安了mayavi的最高的版本

    pip install mayavi==4.8.1
    

     successful

    物联沃分享整理
    物联沃-IOTWORD物联网 » pip安装库报错”This error originates from a subprocess”的解决方法

    发表评论