目录
我的解决方法:
测试:
报错:
undefined symbol: __nvJitLinkComplete_12_4, version libnvJitLink.so.12
from torch._C import * # noqa: F403
ImportError: /mnt/pfs/users/lbg/envs/mmpano/lib/python3.9/site-packages/torch/lib/../../nvidia/cusparse/lib/libcusparse.so.12: undefined symbol: __nvJitLinkComplete_12_4, version libnvJitLink.so.12
我的解决方法:
pip install torch==2.5.0 torchvision==0.20 --index-url https://download.pytorch.org/whl/cu121
测试:
python -c "import torch; print(torch.__version__); print(torch.__path__)"