前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >ERROR: Could not build wheels for opencv-python-headless, which is required to install pyproject.tom

ERROR: Could not build wheels for opencv-python-headless, which is required to install pyproject.tom

作者头像
卓越笔记
发布2023-02-22 13:45:40
2.7K0
发布2023-02-22 13:45:40
举报
文章被收录于专栏:卓越笔记

错误日志

pip 安装 ddddocr 模块报错

代码语言:javascript
复制
pip install ddddocr
...
  ERROR: Failed building wheel for opencv-python-headless
Failed to build opencv-python-headless
ERROR: Could not build wheels for opencv-python-headless, which is required to install pyproject.toml-based projects

报错原因

opencv-python-headless 模块安装不上

解决办法

我们直接使用 whl 文件离线安装方法

去 pypi( opencv-python-headless · PyPI) 官网下载对应版本的 whl

我的环境是 py3.6.8 win 64 位,所以我下载的是红框中的

安装过程:

代码语言:javascript
复制
(work_py) E:\>pip install E:\downloads\opencv_python_headless-3.4.18.65-cp36-abi3-win_amd64.whl
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Processing e:\downloads\opencv_python_headless-3.4.18.65-cp36-abi3-win_amd64.whl
Requirement already satisfied: numpy>=1.13.3 in e:\py_envs\work_py\lib\site-packages (from opencv-python-headless==3.4.18.65) (1.19.5)
Installing collected packages: opencv-python-headless
Successfully installed opencv-python-headless-3.4.18.65

(work_py) E:\>pip install ddddocr
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting ddddocr
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/2b/03/cd7a1998cc435322956c8368bd621176ea50e4e6cbb778b3ba24d19fef8f/ddddocr-1.4.7-py3-none-any.whl (75.9 MB)
Requirement already satisfied: opencv-python-headless in e:\py_envs\work_py\lib\site-packages (from ddddocr) (3.4.18.65)
Requirement already satisfied: Pillow in e:\py_envs\work_py\lib\site-packages (from ddddocr) (8.4.0)
Requirement already satisfied: numpy in e:\py_envs\work_py\lib\site-packages (from ddddocr) (1.19.5)
Collecting onnxruntime
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/57/62/544bd705f3a7d0a24a66747680d95dc78050cdce613ced19c676c4ff4019/onnxruntime-1.10.0-cp36-cp36m-win_amd64.whl (5.2 MB)
Collecting protobuf
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/98/f4/b21be85a824309351356c9a229cf9614d521620e26202a36d5fff2353c37/protobuf-3.19.6-cp36-cp36m-win_amd64.whl (897 kB)
Collecting flatbuffers
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/90/49/3154215b3d8a7acd8c07908eb7132399232fe6a5a79137c4924e712b8eca/flatbuffers-23.1.21-py2.py3-none-any.whl (26 kB)
Installing collected packages: protobuf, flatbuffers, onnxruntime, ddddocr
Successfully installed ddddocr-1.4.7 flatbuffers-23.1.21 onnxruntime-1.10.0 protobuf-3.19.6
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2023-2-21 1,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 错误日志
  • 报错原因
  • 解决办法
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档