pydensecrf安装

这个库安装有很多问题,这里对问题不做总结,只贴出解决方案,仅限Ubuntu

第一个解决方法

先安装cpython,在安装pydensecrf

https://github.com/lucasb-eyer/pydensecrf/issues/62

1
2
pip install cpython
pip install pydensecrf

第二个解决方法

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
2
3
4
5
conda config --add channels conda-forge
conda config --set channel_priority strict
conda install conda-forge pydensecrf
## or
conda install pydensecrf
Error: Not Found