导入错误:libc10.so:无法打开共享对象文件:没有那个文件或目录。

15

在运行smdataparallel时,我看到了以下错误

# python
Python 3.6.10 |Anaconda, Inc.| (default, May  8 2020, 02:54:21)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import smdistributed.dataparallel.torch.distributed as dist
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/conda/lib/python3.6/site-packages/smdistributed/dataparallel/__init__.py", line 16, in <module>
    import smddpcommon as hc
ImportError: libc10.so: cannot open shared object file: No such file or directory

1
smdataparallel是什么? ;) - y.selivonchyk
很高兴你问:https://docs.aws.amazon.com/sagemaker/latest/dg/data-parallel-use-api.html - Chaitanya Bapat
2个回答

31

libc10.so 是由PyTorch提供的。因此,首先

import torch

然后导入依赖pytorch的包。


0
你可以使用find来定位这个文件。例如,find YOUR_HOME_PATH -name "*libc10.so*"。例如,在我的电脑上我找到了/MY_HOME_PATH/anaconda3/envs/xrnerf/lib/python3.7/site-packages/torch/lib/libc10.so

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接