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

第一个解决方法

先安装cpython,在安装pydensecrf

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

pip install cpython
pip install pydensecrf

第二个解决方法

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

pip install git+https://github.com/lucasb-eyer/pydensecrf.git

也可以手动安装,将pydensecrf下载以后cd进入pydensecrf-master文件夹,然后运行

python setup.py install

第三个解决方法

在安装之前首先添加源

https://github.com/conda-forge/pydensecrf-feedstock

conda config --add channels conda-forge
conda config --set channel_priority strict
conda install conda-forge pydensecrf
## or
conda install pydensecrf

第四个解决方法

conda install -c conda-forge pydensecrf
Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐