解决PaddleOCR安装lanms-neo时报错,Could not build wheels for lanms-neo ...

这篇具有很好参考价值的文章主要介绍了解决PaddleOCR安装lanms-neo时报错,Could not build wheels for lanms-neo ...。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

问题

Could not build wheels for lanms-neo, which is required to install pyproject.toml-based projects

我没有使用pip install paddleocr

而是去下载Github上的PaddleOCR项目

PaddleOCR V2.6

然后进入项目执行命令时

pip install -r requirements.txt -i https://mirror.baidu.com/pypi/simple

到了安装lanms-neo,报错,并且提示Microsoft Visual C++ 14.0 的环境问题

× Building wheel for lanms-neo (pyproject.toml) did not run successfully.exit code: 1
╰─> [10 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-37
creating build\lib.win-amd64-cpython-37\lanms
copying lanms_init_.py -> build\lib.win-amd64-cpython-37\lanms
running build_ext
building 'lanms._C' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[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

单独安装一样报错pip install lanms-neo==1.0.2 -i https://pypi.tuna.tsinghua.edu.cn/simple

然后找了论坛上的
solved_packageMissInInstalling_mu_visual_cpp_build_tools_2015_update_3_x64_dvd_dfd9a39c.iso
安装,但是没有成功,提示需要更高的版本

      lanms.cpp
      d:\temp\pip-build-env-w005pfjp\overlay\lib\site-packages\pybind11\include\pybind11\detail/common.h(147): fatal error C1189: #error:  pybind11 2.10+ requires MSVC 2017 or newer
      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

解决方案

下载vs_BuildTools.exe

找到社区版,点击安装
解决PaddleOCR安装lanms-neo时报错,Could not build wheels for lanms-neo ...

进入单个组件,找到MSVC v143-VS2022C++x64/X86生成工具(最新)下载安装
解决PaddleOCR安装lanms-neo时报错,Could not build wheels for lanms-neo ...
再测试,安装成功文章来源地址https://www.toymoban.com/news/detail-505909.html

PS D:\PythonProjects\PaddleOCR-dev> pip install lanms-neo==1.0.2 -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting lanms-neo==1.0.2
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/7b/fe/beff7e7e4455cb9f69c5734897ca8552a57f6423b062ec86b2ebc1d79c0d/lanms_neo-1.0.2.tar.gz (39 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: lanms-neo
  Building wheel for lanms-neo (pyproject.toml) ... done
  Created wheel for lanms-neo: filename=lanms_neo-1.0.2-cp310-cp310-win_amd64.whl size=86168 sha256=f371210746178757d10a5e3272c1a7f1d981a0784262f4602ef65ea3654126e3
  Stored in directory: 
Successfully built lanms-neo
Installing collected packages: lanms-neo
Successfully installed lanms-neo-1.0.2

到了这里,关于解决PaddleOCR安装lanms-neo时报错,Could not build wheels for lanms-neo ...的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • paddleocr,windows pip 安装巨坑 lanms 库,全网最简单,最直接,最有效(记录贴)

    paddleocr最后几个库一个比一个难装,特别是 lanms 库,巨难装,拒绝任何花里胡哨,十分钟,三步内解决问题。 pip 下载报错 是以上这样或者是,下载好了一部分后面直接报错(无法复原了)。 第一步 上 github 下载 C 语言版本自行编译 https://github.com/SakuraRiven/LANMS 上面是网址。

    2024年02月02日
    浏览(27)
  • 解决npm install时报错Could not resolve dependency

    最近在新的项目使用npm install时发现报错: npm WARN cli npm v9.6.4 does not support Node.js v15.14.0. This version of npm supports the following node versions: `^14.17.0 || ^16.13.0 || =18.0.0`. You can find the latest version at https://nodejs.org/. npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR!  npm ERR! While resolving:

    2024年02月08日
    浏览(37)
  • 使用npx electron-forge import命令时报错Could not find git in environment的解决方法

    准备使用Electron Forge​打包项目文件时(打包您的应用程序 | Electron)可能会遇到以下错误:  解决方法:在git的官网(Git for Windows)上下载安装git,然后在git bash的窗体中运行命令即可。 (git的官网)  git下载安装完成后会自动启动git bash,在其中输入并执行命令npx electron

    2024年02月06日
    浏览(33)
  • 关于unbuntu启动hadoop时报错org.apache.hadoop.hdfs.BlockMissingException: Could not obtain block的解决方案

    虚拟机安装 Hadoop 3.1.3,并运行了 HDFS 将网上查询到的资料的所有解决方法都试了一遍,下面这个解决方案成功解决了我的问题。 启动HDFS后,执行统计词频实例wordcount时,显示Block受损。 异常信息 查看受损模块 运行代码: hadoop fsck /你的path 将报错中file后面的路径粘贴过来即

    2024年02月08日
    浏览(28)
  • 安装tiny-cuda-nn时报错RuntimeError: Could not locate a supported Microsoft Visual C++ installation

    按照官方教程安装nerf studio,运行命令 pip install git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch 安装tiny-cuda-nn时,出现以下报错: 根据报错,出现问题的原因是找不到Visual C++编译器的位置。 参考链接:https://github.com/NVlabs/nvdiffrec/issues/35 下载Visual Studio Installer Visual S

    2023年04月25日
    浏览(26)
  • 解决在linux上git clone 时报错 git@gitee.com: Permission denied (publickey). Could not read from remote repo

    今天在gitee上看到一个比较感兴趣的项目,于是就想下载下来研究研究,结果git clone 克隆的时候报错了,报错如下: git@gitee.com: Permission denied (publickey).fatal: Could not read from remote repository.Please make sure you have the correct access rights and the repository exists. Permission denied (publickey) 没有权

    2024年02月11日
    浏览(41)
  • idea的maven多模块项目启动时报错:Could not find artifact或者错误找不到符号

    1、问题描述: 多个项目中遇到idea的多模块maven项目,在启动的时候会报错: 【Could not find artifact,找不到包】 或者 【错误:找不到符号(但明明代码不报红)】 但是在别人的idea上却能正常启动。 2、解决方法: (1)原因说明: 后来发现,项目启动时,idea会自动调用mav

    2024年02月17日
    浏览(46)
  • npm 执行命令时报错npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve

    npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: @vue-office/docx@1.3.0 npm ERR! Found: vue-demi@0.14.6 npm ERR! node_modules/vue-demi npm ERR! vue-demi@“^0.14.6” from the root project npm ERR! vue-demi@“*” from @vueuse/core@9.13.0 npm ERR! node_modules/@vueuse/core npm ERR! @vueuse/core@“^9.1.0” from

    2024年02月07日
    浏览(38)
  • 解决 Centos 安装 Python 3.10 的报错: Could not import runpy module

    操作环境 : CentOS 7 、 Gcc 4.8.5 、 Python 3.10.0 系统上已经有 2.x , 3.6 版本的 Python 了,但是还是想装一个 3.10 的。因为刚写的脚本文件是较高版本的,在 3.6 上无法正常运行, Python 语法不是很了解,只能从环境上下手了。 【注】Python 其他版本也适用,毕竟是编译器的问题,并

    2024年02月03日
    浏览(46)
  • 记录一次老服务器启动ActiveMq时报的Could not create the Java Virtual Machine.错误

    服务器系统CentOS7  1、出现ActiveMq服务无法连接 2、查看activemq状态 service activemq status 显示activemq not running 3、找到ActiveMq的bin目录,# 后台启动 ./activemq console 提示Could not create the Java Virtual Machine.错误 可以判断是java运行环境的问题 4、再看看java版本 java -version 5、再看看activemq版

    2024年04月22日
    浏览(45)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包