(base) [HwHiAiUser@orangepiaipro-20t ~]$ python -c “import mindspore;mindspore.set_device(‘Ascend’);mindspore.run_check()” [ERROR] ME(149594:255085691678752,MainProcess):2026-04-20-09:18:00.647.147 [mindspore/run_check/_check_version.py:350] CheckFailed: No module named ‘sympy’ [CRITICAL] ME(149594:255085691678752,MainProcess):2026-04-20-09:18:00.647.436 [mindspore/run_check/_check_version.py:351] MindSpore relies on whl package “te” in Ascend AI software package (Ascend Data Center Solution). Please check whether they are installed correctly or not, refer to the match info on: MindSpore安装 | 昇思MindSpore社区 /home/HwHiAiUser/miniconda3/lib/python3.9/site-packages/numpy/core/getlimits.py:518: UserWarning: The value of the smallest subnormal for <class ‘numpy.float64’> type is zero. setattr(self, word, getattr(machar, word).flat[0]) /home/HwHiAiUser/miniconda3/lib/python3.9/site-packages/numpy/core/getlimits.py:89: UserWarning: The value of the smallest subnormal for <class ‘numpy.float64’> type is zero. return self._float_to_str(self.smallest_subnormal) /home/HwHiAiUser/miniconda3/lib/python3.9/site-packages/numpy/core/getlimits.py:518: UserWarning: The value of the smallest subnormal for <class ‘numpy.float32’> type is zero. setattr(self, word, getattr(machar, word).flat[0]) /home/HwHiAiUser/miniconda3/lib/python3.9/site-packages/numpy/core/getlimits.py:89: UserWarning: The value of the smallest subnormal for <class ‘numpy.float32’> type is zero. return self._float_to_str(self.smallest_subnormal) [ERROR] ME(149594:255085691678752,MainProcess):2026-04-20-09:18:03.311.404 [mindspore/run_check/_check_version.py:350] CheckFailed: cannot import name ‘utils’ from partially initialized module ‘tbe.common’ (most likely due to a circular import) (/usr/local/Ascend/ascend-toolkit/latest/python/site-packages/tbe/common/_init_.py) [CRITICAL] ME(149594:255085691678752,MainProcess):2026-04-20-09:18:03.311.678 [mindspore/run_check/_check_version.py:351] MindSpore relies on whl package “te” in Ascend AI software package (Ascend Data Center Solution). Please check whether they are installed correctly or not, refer to the match info on: MindSpore安装 | 昇思MindSpore社区 MindSpore version: 2.8.0 [WARNING] DEVICE(149594,e7ff66885120,python):2026-04-20-09:18:09.222.079 [mindspore/ccsrc/plugin/ascend/res_manager/mem_manager/ascend_memory_adapter.cc:127] Initialize] Free memory size is less than half of total memory size.Device 0 Device MOC total size:24823324672 Device MOC free size:12159688704 may be other processes occupying this card, check as: ps -ef|grep python
根据您提供的环境信息及执行 mindspore.run_check() 后返回的日志,当前 MindSpore 虽然已安装,但存在多个依赖缺失、环境冲突和配置错误问题,特别是在 Ascend AI 软件栈(Ascend Data Center Solution)与 MindSpore 的兼容性方面。以下是详细的分析与解决方案。
问题概览
您当前的环境如下:
组件
版本
开发板
香橙派 AI Pro(20T)
NPU 硬件
Ascend310B
操作系统
openEuler 22.03
CANN 版本
8.5
MindSpore 版本
2.8.0
Python 版本
3.9.23
错误提示核心内容包括:
[ERROR] No module named 'sympy'
[CRITICAL] MindSpore relies on whl package “te”
cannot import name ‘utils’ from partially initialized module ‘tbe.common’
python -c "
import mindspore as ms
from mindspore import Tensor
ms.set_context(device_target='Ascend')
x = Tensor([1, 2, 3])
y = Tensor([4, 5, 6])
z = x + y
print('✅ Ascend 设备可用,计算结果:', z)
"