Yes, previously I have installed both packages via pip.
Also I got the following after inserting (print(torch.__version__))
1.2.0a0+2aaeccd

Is the following link still relevant for building torchvision from source?
https://discuss.pytorch.org/t/installing-torchvision-from-source/4677 12