2

On Windows 10 Python 3.7.9 (IDLE) when I use Dask I isntall delayed first:

pip install delayed

Then I import: from dask import delayed but have an error:

Traceback (most recent call last): File "<pyshell#12>", line 1, in from dask import delayed File "C:\Python379\lib\site-packages\dask\delayed.py", line 7, in from tlz import curry, concat, unique, merge ModuleNotFoundError: No module named 'tlz'

I tried to install modules separately but installed only concat, unique and merge.

Val
  • 6,585
  • 5
  • 22
  • 52
bluesky
  • 243
  • 2
  • 12
  • 2
    You clould try to install it via $. pip install dask-ml[complete] – Avatazjoe Jan 16 '21 at 13:47
  • @Avatazjoe How can I mark your answer? And it doesn't work properly? On linux it works: delayed(np.arange)(10) but on windows has an error: TypeError: 'module' object is not callable. – bluesky Jan 16 '21 at 14:00
  • [see this]( https://stackoverflow.com/questions/4534438/typeerror-module-object-is-not-callable) – Avatazjoe Jan 16 '21 at 14:14

1 Answers1

2

On windows seem to be needed to run: pip install tornado==4.5.1 distributed==1.21 dask-ml[complete] too as this coment refers.

Also you need to import Delayed as:

from dask.delayed import delayed
Avatazjoe
  • 465
  • 6
  • 13