跑faster-RCNN代码出现version GLIBCXX_3.4.21 not defined错误怎么办?

发布于 2022-09-11 15:49:32 字数 2921 浏览 13 评论 0

问题描述

py3虚拟环境下
gcc version = 4.8.5
跑github上chenyuntc的faster-RCNN代码
https://github.com/chenyuntc/...
到train.py步骤下
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 libstdc++.so.6 with link time reference

clipboard.png

问题出现的环境背景及自己尝试过哪些方法

尝试修改过libstdc++.so.6的软连接。无论改没改,都显示有GLIBCXX_3.4.21。但是运行train.py还是出这个错无。

clipboard.png

你期待的结果是什么?实际看到的错误信息又是什么?

bug体质,已经卡了四天了,跑不通很难受。有没有前辈遇到过这种问题?怎么办?

具体错误信息如下:

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 libstdc++.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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文