Install jupyter on conda environment.
Install python 3.8 on CentOS 6 via conda, and python has a dependency on GLIBC 2.17. to resolve this issue, GLIBC 2.17 should be compiled and installed, and use patchelf to modify dynamic loader and rpath of python.
C++17 is required for building patchelf 0.14. so 0.13.1 is choosed for compatibility.
wget https://github.com/NixOS/patchelf/archive/refs/tags/0.13.1.tar.gz
tar zxvf 0.13.1.tar.gz
cd patchelf-0.13.1
./bootstrap.sh
cd ..
mkdir build/patchelf
cd build/patchelf
../../patchelf-0.13.1/configure --prefix=$HOME/opt
make -j4
make install
wget http://ftp.gnu.org/gnu/glibc/glibc-2.17.tar.gz
tar zxvf glibc-2.17.tar.gz
mkdir build/glibc
cd build/glibc
../../glibc-2.17/configure --prefix=$HOME/opt/glibc
make -j4
make install
conda create --name jupyter python=3.8
conda activate jupyter
which python | grep -q '\.conda.*envs' && ~/opt/bin/patchelf --set-interpreter $HOME/opt/glibc/lib/ld-2.17.so --set-rpath $HOME/opt/glibc/lib/:`which python | sed 's,/bin/python,/lib,g'`:/usr/lib64:/lib64:/lib `which python`
conda activate jupyter
conda install -c conda-forge notebook
conda install -c conda-forge nb_conda_kernels
conda install -c conda-forge jupyter_contrib_nbextensions