运行程序出现以下报错:
经分析,安装espresso过程中使用的是python3.9.6的环境,而系统中boost是基于python2.7安装的,导致版本不兼容

重新使用python3.9.6安装boost后再运行即可解决报错
安装步骤
wget https://boostorg.jfrog.io/artifactory/main/release/1.72.0/source/boost_1_72_0.tar.gz
tar xf boost_1_72_0.tar.gz
cd boost_1_72_0
./bootstrap.sh --with-toolset=gcc --with-libraries=all --with-python=/usr/bin/python3 --with-python-root=/usr --with-python-version=3 --prefix=/path/to/BOOST
sed -i '21a\ "/usr/include/python3.9m" :' project-config.jam
sed -i '22a\ "/usr/lib" ;' project-config.jam
sed -i '45a\using mpi ;' project-config.jam
./b2 -j32
./b2 install -j32
运行程序出现以下报错:
重新使用python3.9.6安装boost后再运行即可解决报错
安装步骤
wget https://boostorg.jfrog.io/artifactory/main/release/1.72.0/source/boost_1_72_0.tar.gz
tar xf boost_1_72_0.tar.gz
cd boost_1_72_0
./bootstrap.sh --with-toolset=gcc --with-libraries=all --with-python=/usr/bin/python3 --with-python-root=/usr --with-python-version=3 --prefix=/path/to/BOOST
sed -i '21a\ "/usr/include/python3.9m" :' project-config.jam
sed -i '22a\ "/usr/lib" ;' project-config.jam
sed -i '45a\using mpi ;' project-config.jam
./b2 -j32
./b2 install -j32