You can install dask with
pip, or by installing from source.
Dask is installed by default in Anaconda.
You can update Dask using the conda command:
conda install dask
This installs Dask and all common dependencies, including Pandas and NumPy.
Dask packages are maintained both on the default channel and on conda-forge.
Optionally, you can obtain a minimal dask installation using the following command:
conda install dask-core
This will install a minimal set of dependencies required to run dask, similar to (but not exactly the same as)
pip install dask below.
You can install everything required for most common uses of dask (arrays, dataframes, …) This installs both Dask and dependencies like NumPy, Pandas, and so on that are necessary for different workloads. This is often the right choice for Dask users:
pip install "dask[complete]" # Install everything
You can also install only the Dask library. Modules like dask.array, dask.dataframe, or dask.distributed won’t work until you also install NumPy, Pandas, or Tornado respectively. This is common for downstream library maintainers:
pip install dask # Install only core parts of dask
We also maintain other dependency sets for different subsets of functionality:
pip install "dask[array]" # Install requirements for dask array pip install "dask[bag]" # Install requirements for dask bag pip install "dask[dataframe]" # Install requirements for dask dataframe pip install "dask[distributed]" # Install requirements for distributed dask
We have these options so that users of the lightweight core dask scheduler aren’t required to download the more exotic dependencies of the collections (Numpy, Pandas, Tornado, etc..)
Install from Source¶
To install dask from source, clone the repository from github:
git clone https://github.com/dask/dask.git cd dask python setup.py install
pip locally if you want to install all dependencies as well:
pip install -e ".[complete]"
You can view the list of all dependencies within the
Test dask with
cd dask py.test dask
Although please aware that installing dask naively may not install all
requirements by default. Please read the
pip section above that discusses
requirements. You may choose to install the
dask[complete] which includes
all dependencies for all collections. Alternatively you may choose to test
only certain submodules depending on the libraries within your environment.
For example to test only dask core and dask array we would run tests as
py.test dask/tests dask/array/tests