news 2026/7/24 14:32:16

在华为云创建的notebook,镜像为ms2.7.1-cann8.2rc1:v3,之后安装mindyolo一直报numpy版本冲突

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
在华为云创建的notebook,镜像为ms2.7.1-cann8.2rc1:v3,之后安装mindyolo一直报numpy版本冲突

问题描述

Using user ma-user Ubuntu Jammy Jellyfish (development branch), CANN-8.2.RC1 [V100R001C15],[V100R001C18],[V100R001C19],[V100R001C20],[V100R001C21],[V100R001C23] Tips: Navigate to the target conda environment. For details, see /home/ma-user/README. Copy (Ctrl+C) and paste (Ctrl+V) on the jupyter terminal. Store your data in /home/ma-user/work, to which a persistent volume is mounted. Exercise caution when using plaintext passwords, hard-coded AK/SK, or directly entering them in the command line. [ma-user work]$git clone https://github.com/mindspore-lab/mindyolo.git Cloning into ‘mindyolo’… remote: Enumerating objects: 3535, done. remote: Counting objects: 100% (188/188), done. remote: Compressing objects: 100% (94/94), done. remote: Total 3535 (delta 125), reused 107 (delta 94), pack-reused 3347 (from 2) Receiving objects: 100% (3535/3535), 6.75 MiB | 832.00 KiB/s, done. Resolving deltas: 100% (2059/2059), done. [ma-user work]$cd mindyolo pip install -e . Looking in indexes: http://pip.modelarts.private.com:8888/repository/pypi/simple Obtaining file:///home/ma-user/work/mindyolo Installing build dependencies … done Checking if build backend supports build_editable … done Getting requirements to build editable … done Preparing editable metadata (pyproject.toml) … done Collecting pybind11>=2.10.4 (from mindyolo==0.5.0) Downloading http://pip.modelarts.private.com:8888/repository/pypi/packages/pybind11/3.0.1/pybind11-3.0.1-py3-none-any.whl (293 kB) Requirement already satisfied: numpy>=1.17.0 in /usr/local/python3.10.14/lib/python3.10/site-packages (from mindyolo==0.5.0) (1.21.2) Requirement already satisfied: PyYAML>=5.3 in /usr/local/python3.10.14/lib/python3.10/site-packages (from mindyolo==0.5.0) (6.0.3) Collecting tqdm (from mindyolo==0.5.0) Downloading http://pip.modelarts.private.com:8888/repository/pypi/packages/tqdm/4.67.1/tqdm-4.67.1-py3-none-any.whl (78 kB) Collecting opencv-python>=4.7.0.68 (from mindyolo==0.5.0) Downloading http://pip.modelarts.private.com:8888/repository/pypi/packages/opencv-python/4.12.0.88/opencv_python-4.12.0.88-cp37-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (45.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 45.9/45.9 MB 190.3 MB/s 0:00:00 Collecting opencv-python-headless>=4.7.0.68 (from mindyolo==0.5.0) Downloading http://pip.modelarts.private.com:8888/repository/pypi/packages/opencv-python-headless/4.12.0.88/opencv_python_headless-4.12.0.88-cp37-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (33.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 33.1/33.1 MB 228.0 MB/s 0:00:00 Collecting albumentations>=1.0.3 (from mindyolo==0.5.0) Downloading http://pip.modelarts.private.com:8888/repository/pypi/packages/albumentations/2.0.8/albumentations-2.0.8-py3-none-any.whl (369 kB) Collecting pycocotools>=2.0.2 (from mindyolo==0.5.0) Downloading http://pip.modelarts.private.com:8888/repository/pypi/packages/pycocotools/2.0.10/pycocotools-2.0.10-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (445 kB) Collecting numpy>=1.17.0 (from mindyolo==0.5.0) Downloading http://pip.modelarts.private.com:8888/repository/pypi/packages/numpy/2.2.6/numpy-2.2.6-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (14.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 14.3/14.3 MB 205.7 MB/s 0:00:00 Requirement already satisfied: scipy>=1.10.0 in /usr/local/python3.10.14/lib/python3.10/site-packages (from albumentations>=1.0.3->mindyolo==0.5.0) (1.10.1) Collecting pydantic>=2.9.2 (from albumentations>=1.0.3->mindyolo==0.5.0) Downloading http://pip.modelarts.private.com:8888/repository/pypi/packages/pydantic/2.12.4/pydantic-2.12.4-py3-none-any.whl (463 kB) Collecting albucore==0.0.24 (from albumentations>=1.0.3->mindyolo==0.5.0) Downloading http://pip.modelarts.private.com:8888/repository/pypi/packages/albucore/0.0.24/albucore-0.0.24-py3-none-any.whl (15 kB) Collecting stringzilla>=3.10.4 (from albucore==0.0.24->albumentations>=1.0.3->mindyolo==0.5.0) Downloading http://pip.modelarts.private.com:8888/repository/pypi/packages/stringzilla/4.2.3/stringzilla-4.2.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl (424 kB) Collecting simsimd>=5.9.2 (from albucore==0.0.24->albumentations>=1.0.3->mindyolo==0.5.0) Downloading http://pip.modelarts.private.com:8888/repository/pypi/packages/simsimd/6.5.3/simsimd-6.5.3-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (562 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 562.5/562.5 kB 64.0 MB/s 0:00:00 Collecting annotated-types>=0.6.0 (from pydantic>=2.9.2->albumentations>=1.0.3->mindyolo==0.5.0) Downloading http://pip.modelarts.private.com:8888/repository/pypi/packages/annotated-types/0.7.0/annotated_types-0.7.0-py3-none-any.whl (13 kB) Collecting pydantic-core==2.41.5 (from pydantic>=2.9.2->albumentations>=1.0.3->mindyolo==0.5.0) Downloading http://pip.modelarts.private.com:8888/repository/pypi/packages/pydantic-core/2.41.5/pydantic_core-2.41.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 MB 148.6 MB/s 0:00:00 Requirement already satisfied: typing-extensions>=4.14.1 in /usr/local/python3.10.14/lib/python3.10/site-packages (from pydantic>=2.9.2->albumentations>=1.0.3->mindyolo==0.5.0) (4.15.0) Collecting typing-inspection>=0.4.2 (from pydantic>=2.9.2->albumentations>=1.0.3->mindyolo==0.5.0) Downloading http://pip.modelarts.private.com:8888/repository/pypi/packages/typing-inspection/0.4.2/typing_inspection-0.4.2-py3-none-any.whl (14 kB) INFO: pip is looking at multiple versions of scipy to determine which version is compatible with other requirements. This could take a while. Collecting scipy>=1.10.0 (from albumentations>=1.0.3->mindyolo==0.5.0) Downloading http://pip.modelarts.private.com:8888/repository/pypi/packages/scipy/1.15.3/scipy-1.15.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (35.5 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 35.5/35.5 MB 228.1 MB/s 0:00:00 Building wheels for collected packages: mindyolo Building editable for mindyolo (pyproject.toml) … done Created wheel for mindyolo: filename=mindyolo-0.5.0-0.editable-py3-none-any.whl size=8487 sha256=29135b7ada571179177d4791e868626adf7493303925a08f342b192774d3b91a Stored in directory: /tmp/pip-ephem-wheel-cache-5okavkuq/wheels/cd/dd/f5/cbb5fc9293f3973d344fa2df78162e2754db51796569272f1f Successfully built mindyolo Installing collected packages: simsimd, typing-inspection, tqdm, stringzilla, pydantic-core, pybind11, numpy, annotated-types, scipy, pydantic, pycocotools, opencv-python-headless, opencv-python, albucore, albumentations, mindyolo Attempting uninstall: numpy Found existing installation: numpy 1.21.2 Uninstalling numpy-1.21.2: Successfully uninstalled numpy-1.21.2 Attempting uninstall: scipy Found existing installation: scipy 1.10.1 Uninstalling scipy-1.10.1: Successfully uninstalled scipy-1.10.1 ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. dataflow 0.0.1 requires jinja2, which is not installed. te 0.4.0 requires cloudpickle, which is not installed. te 0.4.0 requires ml-dtypes, which is not installed. mindspore 2.7.1 requires numpy<2.0.0,>=1.20.0, but you have numpy 2.2.6 which is incompatible. Successfully installed albucore-0.0.24 albumentations-2.0.8 annotated-types-0.7.0 mindyolo-0.5.0 numpy-2.2.6 opencv-python-4.12.0.88 opencv-python-headless-4.12.0.88 pybind11-3.0.1 pycocotools-2.0.10 pydantic-2.12.4 pydantic-core-2.41.5 scipy-1.15.3 simsimd-6.5.3 stringzilla-4.2.3 tqdm-4.67.1 typing-inspection-0.4.2

降级numpy后,opencv又版本冲突了

[ma-user mindyolo]$pip install numpy==1.26.4 --force-reinstall Looking in indexes: http://pip.modelarts.private.com:8888/repository/pypi/simple Collecting numpy==1.26.4 Downloading http://pip.modelarts.private.com:8888/repository/pypi/packages/numpy/1.26.4/numpy-1.26.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (14.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 14.2/14.2 MB 137.5 MB/s 0:00:00 Installing collected packages: numpy Attempting uninstall: numpy Found existing installation: numpy 2.2.6 Uninstalling numpy-2.2.6: Successfully uninstalled numpy-2.2.6 ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. dataflow 0.0.1 requires jinja2, which is not installed. te 0.4.0 requires cloudpickle, which is not installed. te 0.4.0 requires ml-dtypes, which is not installed. opencv-python 4.12.0.88 requires numpy<2.3.0,>=2; python_version >= “3.9”, but you have numpy 1.26.4 which is incompatible. opencv-python-headless 4.12.0.88 requires numpy<2.3.0,>=2; python_version >= “3.9”, but you have numpy 1.26.4 which is incompatible. Successfully installed numpy-1.26.4

问题解答

MindSpore2.7.1需要numpy<2.0.0,您可以尝试安装 OpenCV ≤ 4.11.0.86 ,这可以兼容NumPy<2.0.0。

版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/7/24 13:10:57

【开题答辩全过程】以 基于Java的人体骨骼健康知识普及系统为例,包含答辩的问题和答案

个人简介一名14年经验的资深毕设内行人&#xff0c;语言擅长Java、php、微信小程序、Python、Golang、安卓Android等开发项目包括大数据、深度学习、网站、小程序、安卓、算法。平常会做一些项目定制化开发、代码讲解、答辩教学、文档编写、也懂一些降重方面的技巧。感谢大家的…

作者头像 李华
网站建设 2026/7/23 10:09:15

企业微信开发总卡壳?试试cpolar,回调调试超顺畅

前言 企业微信开发中&#xff0c;回调功能用于接收服务器的通知和数据&#xff0c;比如审批结果、打卡信息等&#xff0c;是实现消息推送、OAuth2 授权等功能的关键。它适用于企业 IT 人员、开发者&#xff0c;能帮助企业搭建内部业务系统与企业微信的连接&#xff0c;优点是能…

作者头像 李华
网站建设 2026/7/23 15:03:52

ChatPPT:国内综合实力最强的AI PPT工具

&#x1f451; 第一名&#xff1a;ChatPPT&#xff08;www.chatppt.cn&#xff09; 综合多项评测&#xff0c;ChatPPT在2025年被认为是国内综合实力最强的AI PPT工具之一&#xff0c;其优势主要体现在以下几个方面。 海量模板与强大设计&#xff1a;ChatPPT拥有超过40万套模板…

作者头像 李华
网站建设 2026/7/21 8:09:28

测试经验,自动化测试的痛点+发展趋势,一篇带你上高速...

目录&#xff1a;导读 前言一、Python编程入门到精通二、接口自动化项目实战三、Web自动化项目实战四、App自动化项目实战五、一线大厂简历六、测试开发DevOps体系七、常用自动化测试工具八、JMeter性能测试九、总结&#xff08;尾部小惊喜&#xff09; 前言 早期&#xff0c;…

作者头像 李华
网站建设 2026/7/24 3:21:11

NetGuard实战指南:告别流量焦虑,让Android网络管理如此简单

你是否曾经发现手机流量莫名其妙地消失&#xff1f;是否担心某些应用在后台偷偷上传你的隐私数据&#xff1f;现在&#xff0c;一款名为NetGuard的Android应用能帮你彻底解决这些问题。作为一款无需root权限的网络管理工具&#xff0c;NetGuard通过本地虚拟专用网络技术为你提供…

作者头像 李华
网站建设 2026/7/22 23:07:04

大厂已经不用人干活了?“AI中台+Agent”正在重塑商业规则

当一部分企业还在讨论AI能做什么时&#xff0c;领先的大厂已经悄悄完成了一场组织变革&#xff1a;HR、法务、营销、财务等部门的工位上&#xff0c;迎来了一批724小时不眠不休、效率惊人的“新同事”——AI Agent。这并非取代&#xff0c;而是进化。“AI中台 AI Agent” 的王…

作者头像 李华