Could you post the log from the installation please?
Also, PyTorch 1.0.0 and torchvision 0.2.1 are quite old by now so you might want to install the latest stable releases.
>>> import torchvision
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/iseadmin/.local/lib/python3.6/site-packages/torchvision/__init__.py", line 1, in <module>
from torchvision import models
File "/home/iseadmin/.local/lib/python3.6/site-packages/torchvision/models/__init__.py", line 11, in <module>
from . import detection
File "/home/iseadmin/.local/lib/python3.6/site-packages/torchvision/models/detection/__init__.py", line 1, in <module>
from .faster_rcnn import *
File "/home/iseadmin/.local/lib/python3.6/site-packages/torchvision/models/detection/faster_rcnn.py", line 7, in <module>
from torchvision.ops import misc as misc_nn_ops
File "/home/iseadmin/.local/lib/python3.6/site-packages/torchvision/ops/__init__.py", line 1, in <module>
from .boxes import nms, box_iou
File "/home/iseadmin/.local/lib/python3.6/site-packages/torchvision/ops/boxes.py", line 2, in <module>
from torchvision import _C
ImportError: libcudart.so.10.0: cannot open shared object file: No such file or directory
Do you have any other torchvision or PyTorch installations on this machine and environment?
I just tried to reproduce the import issue by installing PyTorch 1.7.0 and torchvision==0.8.1 as the CPU-only packages in a new conda env via:
Yes, that was the problem, I thought conda prioritizes the environment packages over the local ones. Seems that’s not the case, so I just uninstall the local torchvision and it worked!.