What if there is a version GLIBCXX_3.4.21 not defined error in running the faster-RCNN code?

problem description

In

py3 virtual environment
gcc version = 4.8.5
run the faster-RCNN code of chenyuntc on github
https://github.com/chenyuntc/.
to train.py step
clipboard.png

ImportError: /home/wendong/anaconda2/envs/wendong/lib/python3.5/site-packages/scipy/spatial/ckdtree.cpython-35m-x86_64-linux-gnu.so: symbol _ZTINSt8ios_base7failureB5cxx11E, version GLIBCXX_3.4.21 not defined in file libstdcPP.so.6 with link time reference

clipboard.png

libstdcPP.so.6GLIBCXX_3.4.21train.py

clipboard.png

what result do you expect? What is the error message actually seen?

bug physique, has been stuck for four days, can not run very uncomfortable. Have any seniors ever encountered this kind of problem? What shall I do?

specific error messages are as follows:

Traceback (most recent call last):
  File "train.py", line 11, in <module>
    from data.dataset import Dataset, TestDataset, inverse_normalize
  File "/home/wendong/work/simple-faster-rcnn-pytorch/data/dataset.py", line 5, in <module>
    from skimage import transform as sktsf
  File "/home/wendong/anaconda2/envs/wendong/lib/python3.5/site-packages/skimage/transform/__init__.py", line 4, in <module>
    from .radon_transform import (radon, iradon, iradon_sart,
  File "/home/wendong/anaconda2/envs/wendong/lib/python3.5/site-packages/skimage/transform/radon_transform.py", line 5, in <module>
    from scipy.interpolate import interp1d
  File "/home/wendong/anaconda2/envs/wendong/lib/python3.5/site-packages/scipy/interpolate/__init__.py", line 175, in <module>
    from .interpolate import *
  File "/home/wendong/anaconda2/envs/wendong/lib/python3.5/site-packages/scipy/interpolate/interpolate.py", line 32, in <module>
    from .interpnd import _ndim_coords_from_arrays
  File "interpnd.pyx", line 1, in init scipy.interpolate.interpnd
  File "/home/wendong/anaconda2/envs/wendong/lib/python3.5/site-packages/scipy/spatial/__init__.py", line 95, in <module>
    from .ckdtree import *
ImportError: /home/wendong/anaconda2/envs/wendong/lib/python3.5/site-packages/scipy/spatial/ckdtree.cpython-35m-x86_64-linux-gnu.so: symbol _ZTINSt8ios_base7failureB5cxx11E, version GLIBCXX_3.4.21 not defined in file libstdcPP.so.6 with link time reference

If you suspect this is an IPython bug, please report it at:
    https://github.com/ipython/ipython/issues
or send an email to the mailing list at ipython-dev@python.org

You can print a more detailed traceback right now with "%tb", or use "%debug"
to interactively debug it.

Dec.29,2021
Menu