报错ERROR: Could not build wheels for lanms-neo导致Failed to build lanms-neo情况之一分析与解决

在PaddleOCR-release-2.6框架下运行OCR模型,构建其虚拟环境时,报错
我的基础环境为:
系统:win10
主框架:PaddleOCR-release-2.6
pip:22.3
python:3.8
以下为第一次报错信息:

error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit code 2
      [end of output]
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for lanms-neo
  ............
Failed to build lanms-neo
ERROR: Could not build wheels for lanms-neo, which is required to install pyproject.toml-based projects

第一次尝试解决,此时未意识到error: command ‘C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe’ failed with exit code 2报错信息的重要性,借鉴其他博主经验,直接安装pip install lanms-neo,仍然报错,报错信息未变。

error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for lanms-neo
Failed to build lanms-neo
ERROR: Could not build wheels for lanms-neo, which is required to install pyproject.toml-based projects

第二次尝试,借鉴其他博主经验,可能是paddleocr版本问题,于是指定版本安装pip install paddleocr==2.6.0.2 -i https://pypi.douban.com/simple,不需要删除之前版本,自动更新。新版本paddleocr安装完毕,于是对虚拟环境的迭代安装pip install -r ./requirements.txt,依然报错,报错信息未变。
第三次尝试,想想在新的版本下直接安装lanms-neo,pip install lanms-neo,依然报错,报错信息未变。
第四次尝试,可能是解决错误的方向错了,于是对关键报错信息error: command ‘C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe’ failed with exit code 2进行搜索,借鉴其他博主经验,说是电脑缺少安装Microsoft Visual C++,但是在本机中之前就安装了Microsoft Visual C++各种版本;于是再次搜索该报错信息,其他博主经验为,‘使用C++的桌面开发’,但是给的操作信息不全,于是搜索‘使用C++的桌面开发’,得到详细的操作步骤。
在这里插入图片描述
在这里插入图片描述
注意:这里按照3、4步骤进行,就行,通用Windows平台开发不用安装
等待安装完毕即可!
在这里插入图片描述
不需要关机重启,在终端即可进行pip install -r .\requirements.txt虚拟环境的迭代安装!
在这里插入图片描述

  • 9
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 7
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值