3

I need to install a few python packages in a Docker container via requirements.txt, using pip install. One of the packages is dask. However, when installing it, it throws an error because it cannot find the package toolz. The question has been answered already here, i.e. by typing

pip install "dask[dataframe]"

However, I need to fix it by adding the line in the requirements.txt. Something like:

pandas==0.23.4
dask==1.0.0
???dask[dataframe]???

How should it look like in the requirements file? What should I write in place of the ???

giosans
  • 1,136
  • 1
  • 12
  • 30

1 Answers1

7

dask[dataframe]==??? where ??? is the version you want to specify will work without problems.

E.g. dask[dataframe]==1.1.1.

Matěj Račinský
  • 1,679
  • 1
  • 16
  • 28
  • Is the version of `dask[dataframe]` same as the one of `dask` ? – giosans Feb 11 '19 at 16:42
  • 1
    @giosans I believe so, the brackets just [denote a subset of the dependencies](https://docs.dask.org/en/latest/install.html#pip). – Dahn May 12 '20 at 09:52