建议直接使用conda官网给的解决方案如下所示: conda install conda-forge::pydensecrf 官网链接如下所示: https://anaconda.org/conda-forge/pydensecrf