python=3.8, torch=2.1.0 torch-npu=2.1.0,CANN_toolkit=7.0.1.1,版本应该都是对应的
python是miniconda下的环境,有source set_env.sh ,
可以find到libhccl.so这个文件,

但是export LD_LIBRARY_PATH没有用
报错信息:
Traceback (most recent call last):
File "/home/x/miniconda3/envs/pytorch38/lib/python3.8/site-packages/torch_npu/__init__.py", line 14, in <module>
import torch_npu.npu
File "/home/x/miniconda3/envs/pytorch38/lib/python3.8/site-packages/torch_npu/npu/__init__.py", line 110, in <module>
from .utils import (synchronize, device_count, can_device_access_peer, set_device, current_device, get_device_name,
File "/home/x/miniconda3/envs/pytorch38/lib/python3.8/site-packages/torch_npu/npu/utils.py", line 11, in <module>
import torch_npu._C
ImportError: libhccl.so: cannot open shared object file: No such file or directory. Please check that the cann package is installed. Please run 'source set_env.sh' in the CANN installation path.
python=3.8, torch=2.1.0 torch-npu=2.1.0,CANN_toolkit=7.0.1.1,版本应该都是对应的
python是miniconda下的环境,有source set_env.sh ,
可以find到libhccl.so这个文件,
但是export LD_LIBRARY_PATH没有用
报错信息:
Traceback (most recent call last):
File "/home/x/miniconda3/envs/pytorch38/lib/python3.8/site-packages/torch_npu/__init__.py", line 14, in <module>
import torch_npu.npu
File "/home/x/miniconda3/envs/pytorch38/lib/python3.8/site-packages/torch_npu/npu/__init__.py", line 110, in <module>
from .utils import (synchronize, device_count, can_device_access_peer, set_device, current_device, get_device_name,
File "/home/x/miniconda3/envs/pytorch38/lib/python3.8/site-packages/torch_npu/npu/utils.py", line 11, in <module>
import torch_npu._C
ImportError: libhccl.so: cannot open shared object file: No such file or directory. Please check that the cann package is installed. Please run 'source set_env.sh' in the CANN installation path.