ModuleNotFoundError:没有名为“numexpr.interpreter”的模块

问题描述 投票:0回答:1

我安装的 numexpr 有问题。当我运行以下代码时

import numexpr as ne

我收到以下错误消息:

从 numexpr.interpreter 导入 MAX_THREADS、use_vml、BLOCK_SIZE1

ModuleNotFoundError:没有名为“numexpr.interpreter”的模块

有人知道可能是什么原因吗?

我已经多次安装和卸载 numexpr。 更多信息: Python v 3.10.11 数字表达式 2.8.4

完整错误日志:

回溯(最近一次调用最后一次):

文件 “C:\用户emajco \Miniconda3 nvs \spyder-env\lib\site-packages\spyder_kernels\py3compat.py”, 第 356 行,在 compat_exec 中 exec(代码,全局变量,局部变量)

文件 “c:\usersemajco\myprojects\hyphen\learning\hyphen_learning.py”,行 11、在 将 numexpr 导入为 ne

文件 “C:\Users emajco\Miniconda3\Lib\site-packages umexpr_init_.py", 第 24 行,在 从 numexpr.interpreter 导入 MAX_THREADS、use_vml、BLOCK_SIZE1

ModuleNotFoundError:没有名为“numexpr.interpreter”的模块

python python-3.x spyder numexpr
1个回答
0
投票

这并不能解决问题:

langchain 0.0.206 需要 numexpr<3.0.0,>=2.8.4,但你有 numexpr 2.8.3,这是不兼容的。

© www.soinside.com 2019 - 2024. All rights reserved.