You might have a broken installation still in your system.
Try running a small test: Create a new environment and install QuantLib there.
conda create --name test python=3.8
conda activate test
pip install QuantLib
echo import QuantLib as ql; print(ql.__version__) > test.py
python test.py
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…