I have installed pytorch as shown in nvidia documents and follwed procedure for torchvision for 0.15.1 as torch is 2.0.0+nv
$ sudo apt-get install libjpeg-dev zlib1g-dev libpython3-dev libopenblas-dev libavcodec-dev libavformat-dev libswscale-dev
$ git clone --branch <version> https://github.com/pytorch/vision torchvision # see below for version of torchvision to download
$ cd torchvision
$ export BUILD_VERSION=0.x.0 # where 0.x.0 is the torchvision version
$ python3 setup.py install --user
got log finally
Using /usr/local/lib/python3.8/dist-packages
Finished processing dependencies for torchvision==0.15.1a0+42759b1
by when i am trying to check i am getting issues
log
adascoe@ubuntu:~/Rail_road_activity$ python3
Python 3.8.10 (default, May 26 2023, 14:05:08)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torchvision.transforms
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'torchvision.transforms'
>>> import torchvision
>>> torchvision,__version__
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name '__version__' is not defined
>>> torchvision.__version__
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'torchvision' has no attribute '__version__'
>>> print(torchvision.__version__)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'torchvision' has no attribute '__version__'
Can anyone please help me