解决方法
网上的代码中使用的是旧版本的 pymatgen ,在安装了新版本的 pymatgen 后无法直接运行脚本来导入idppsolver,使用 pip 安装 pymatgen-analysis-diffusion 包后修改代码
pip install pymatgen-analysis-diffusion
#from pymatgen_diffusion.neb.pathfinder import IDPPSolver
from pymatgen.analysis.diffusion.neb.pathfinder import IDPPSolver
使用 conda 创建 pymatgen 环境
conda create -n pymatgen
source activate pymatgen
conda install --channel conda-forge -y pymatgen
基于当前日期 2022.10.27 ,conda 自动配置的 pymatgen 版本为 2022.10.22