ImportError Traceback (most recent call last)
Cell In[1], line 1
----> 1 import torch
2 import os
3 import re
File ~/.conda/envs/bce/lib/python3.10/site-packages/torch/init.py:235
233 if USE_GLOBAL_DEPS:
234 _load_global_deps()
--> 235 from torch._C import * # noqa: F403
237 # Appease the type checker; ordinarily this binding is inserted by the
238 # torch._C module initialization code in C
239 if TYPE_CHECKING:
import的时候报错:
ImportError Traceback (most recent call last) Cell In[1], line 1 ----> 1 import torch 2 import os 3 import re
File ~/.conda/envs/bce/lib/python3.10/site-packages/torch/init.py:235 233 if USE_GLOBAL_DEPS: 234 _load_global_deps() --> 235 from torch._C import * # noqa: F403 237 # Appease the type checker; ordinarily this binding is inserted by the 238 # torch._C module initialization code in C 239 if TYPE_CHECKING:
ImportError: /home/powerop/.conda/envs/bce/lib/python3.10/site-packages/torch/lib/libtorch_cuda.so: undefined symbol: ncclCommInitRankConfig