安装 Dask.Distributed

安装 Dask.Distributed

您可以使用 condapip 或从源码安装 dask.distributed。

Conda

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

conda install dask distributed -c conda-forge

Pip

或者使用 pip 安装 distributed

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