确保已经安装了Cython和numpy库。
下载pydensecrf源码:
git clone https://github.com/lucasb-eyer/pydensecrf.git
cd pydensecrf
pip install .
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools
则需要安装Microsoft Visual C++ Build Tools。