苹果M1芯片上的modin [dask]

发布于 2025-01-31 02:51:21 字数 374 浏览 4 评论 0原文

我已经在Apple M1 Chip MacBook Pro上成功安装了Modin [dask],但是当我运行代码时,我得到了以下错误:

attributeError:'nontype'对象没有属性'ncores'。

以下是PIP列表(Python 3.10.4):

dask                          2022.5.0
distributed                   2022.5.0
modin                         0.11.3
pandas                        1.3.4

感谢您的任何帮助。

I have successfully installed modin[dask] with conda on my Apple M1 chip MacBook Pro, but when I run the code, I got the below errors:

AttributeError: 'NoneType' object has no attribute 'ncores'.

The below is pip list(Python 3.10.4):

dask                          2022.5.0
distributed                   2022.5.0
modin                         0.11.3
pandas                        1.3.4

Thanks for any help.

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

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

发布评论

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

评论(1

忘年祭陌 2025-02-07 02:51:21

很难诊断发生的情况,而无需看到您运行的代码以及您如何安装所有内容。

这是一篇博客文章,讲述了设置带有DASK的基于M1的Mac:

”要点是:

  • 则应使用Mambaforge Conda开始新鲜。
  • 如果Mamba不是“ amamba
  • install ”所有内容 所有内容都应该来自conda-forge频道,
mamba create --name=dask-env python=3.9 dask dask-labextension --channel=conda-forge

It's hard to diagnose what's going on without seeing what code you ran and exactly how you installed everything.

Here's a blog post about setting up an M1-based Mac with dask:
https://coiled.io/blog/apple-arm64-mambaforge/

The key points are:

  • start fresh with mambaforge
  • conda should be ok if mamba's not an options
  • install everything into a fresh environment and everything should come from the conda-forge channel.
mamba create --name=dask-env python=3.9 dask dask-labextension --channel=conda-forge

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