numpy版本和numba

发布于 2025-02-08 07:45:39 字数 204 浏览 2 评论 0原文

我正在运行一些Python(3.9.12)代码,并且运行良好。 如果我尝试调试(与pycharm),我会得到: 'attributeError:模块'numpy.core'没有属性'数字型'

我搜索了它,并得到了升级numpy的建议,但是当我尝试运行它时,提出了这个错误: Importerror:Numba需要Numpy 1.21或更少。

还有其他建议可以调试吗?

I am running some python (3.9.12) code and runs fine.
If I try to debug (with PyCharm) I get:
'AttributeError: module 'numpy.core' has no attribute 'numerictypes''

I googled it, and got the suggestion of upgrading my numpy, but then when I try to run it, comes up with this error:
importerror: numba needs numpy 1.21 or less.

Any other suggestions to get to be able to debug?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

诠释孤独 2025-02-15 07:45:39

找到解决方法:

“”

在Pycharm中更改此设置修复了它。

Found workaround:

Changing this setting in PyCharm fixed it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文