当前位置: 首页 > 工具软件 > Docker-py > 使用案例 >

docker python train.py

慕承允
2023-12-01

运行错误:

ImportError: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/transwarp/miniconda3/lib/python3.7/site-packages/google/protobuf/pyext/_message.cpython-37m-x86_64-linux-gnu.so

解决方法:
参考链接添加链接描述

原因:

版本冲突。/lib64/libstdc++.so.6不符合/home/transwarp/miniconda3/lib/python3.7/site-packages/google/protobuf/pyext/_message.cpython-37m-x86_64-linux-gnu.so的需要。

查询符合cpython-37m-x86_64-linux-gnu.so依赖的libstdc++.so是哪个:

ldd /home/transwarp/miniconda3/lib/python3.7/site-packages/google/protobuf/pyext/_message.cpython-37m-x86_64-linux-gnu.so
libstdc++.so.6 => /home/transwarp/lib/python2.7/site-packages/pandas/_libs/../../../../libstdc++.so.6 (0x00007f9fa45f1000)
#确认一下该版本是不是GLIBCXX_3.4.21的
grep GLIBCXX_3.4.21 /home/transwarp/miniconda3/lib/libstdc++.so.6
Binary file /home/anaconda2/lib/libstdc++.so.6 matches

/home/transwarp/miniconda3/lib添加到环境变量中:

export LD_LIBRARY_PATH=/home/transwarp/miniconda3/lib:$LD_LIBRARY_PATH

运行错误:

AssertionError: Image Not Found ..\coco128\images\train2017\000000000009.jpg

解决:

rm -rf \000000000009.jpg
 类似资料:

相关阅读

相关文章

相关问答