属性错误:使用 conda 安装 dask 后,模块“dask”没有属性“set_options”

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

我正在使用 annaconda,我刚刚使用下面安装了 dask

https://anaconda.org/conda-forge/dask

conda install -c conda-forge dask

我可以使用 read_csv() 并且没有错误,但是,我收到了这个错误。我想知道是否需要使用

安装所有内容

python -m pip install“dask[完整]”

会与使用anacondas安装的dask冲突吗?谢谢

import dask.multiprocessing
dask.set_options(get=dask.multiprocessing.get)  # set processes as default

AttributeError                            Traceback (most recent call last)
cnrl\users\yongnual\Data\Spyder_workplace\DTS_dashboard\pandas2_high_performance_testing.ipynb Cell 14 line 2
      1 import dask.multiprocessing
----> 2 dask.set_options(get=dask.multiprocessing.get)

AttributeError: module 'dask' has no attribute 'set_options'

dask
1个回答
0
投票

你可以尝试同时安装

distributed
吗?

conda install -c conda-forge dask distributed
© www.soinside.com 2019 - 2024. All rights reserved.