缺少:”GLIBCXX_3.4.30“文件

Traceback (most recent call last):
File “/mnt/lt/JDiffusion/examples/dreambooth/train.py”, line 16, in
import jittor as jt
File “/mnt/anaconda/envs/jdiffusion/lib/python3.9/site-packages/jittor/init.py”, line 18, in
from . import compiler
File “/mnt/anaconda/envs/jdiffusion/lib/python3.9/site-packages/jittor/compiler.py”, line 1364, in
import jittor_core as core
ImportError: /mnt/anaconda/envs/jdiffusion/bin/…/lib/libstdc++.so.6: version `GLIBCXX_3.4.30’ not found (required by /home/lxh/.cache/jittor/jt1.3.9/g++9.5.0/py3.9.19/Linux-6.2.0-39x36/13thGenIntelRCxd9/4f74/default/cu11.2.152_sm_89/jittor_core.cpython-39-x86_64-linux-gnu.so)
这种情况如何解决呀?

可以直接删除 /mnt/anaconda/envs/jdiffusion/bin/…/lib/libstdc++.so.6: version `GLIBCXX_3.4.30’ ,jittor会在环境变量中尝试找到正确的文件,或者按照https://blog.csdn.net/bohrium/article/details/126546521 中的解决方案解决