这个库安装有很多问题,这里对问题不做总结,只贴出解决方案,仅限Ubuntu
第一个解决方法
先安装cpython,在安装pydensecrf
https://github.com/lucasb-eyer/pydensecrf/issues/62
1 | pip install cpython |
第二个解决方法
https://github.com/lucasb-eyer/pydensecrf
1 | pip install git+https://github.com/lucasb-eyer/pydensecrf.git |
第三个解决方法
在安装之前首先添加源
https://github.com/conda-forge/pydensecrf-feedstock
1 | conda config --add channels conda-forge |