安装 Dask.Distributed

安装 Dask.Distributed

你可以通过 condapip 或从源代码安装 dask.distributed。

Conda

要使用 condaconda-forge 仓库安装最新版本的 dask.distributed:

conda install dask distributed -c conda-forge

Pip

或者使用 pip 安装分布式版本:

python -m pip install dask distributed --upgrade

源代码

要从源代码安装 distributed,请从 github 克隆仓库:

git clone https://github.com/dask/distributed.git
cd distributed
python -m pip install .

注释

Macports 用户注意: 这里 有一个已知问题。macports 的 Python 会导致可执行文件被放置在一个默认不可访问的位置。一个简单的解决方案是扩展 PATH 环境变量到 macports 安装 Python 二进制文件的位置。例如,对于 Python 3.7:

$ export PATH=/opt/local/Library/Frameworks/Python.framework/Versions/3.7/bin:$PATH