Repository: pytorch
Issue: pip install nightly torch torchaudio and torchvision together will install 0.3.0 version of torchvsion on Ubuntu
Labels: high priority,module: binaries,triaged

## 🐛 Bug

<!-- A clear and concise description of what the bug is. -->
When pip install nightly version of torch with torchaudio and torchvision, torchvison 0.3.0 will be installed. When try to import torchvision on the installed version, below error will shown:
ImportError: libcudart.so.9.0: cannot open shared object file: No such file or directory


## To Reproduce

Steps to reproduce the behavior:

1. Create new conda virtual env: conda env create -n test-torch python=3.7
2. Activate conda env: conda activate test-torch
3. Pip install nightly version torch: pip3 install --pre torch torchaudio torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
4. Check installed version of package: pip list
5. pip list shows below:
ackage           Version
----------------- ----------------------
certifi           2021.5.30
numpy             1.21.0
Pillow            8.2.0
pip               21.1.2
setuptools        52.0.0.post20210125
six               1.16.0
torch             1.10.0.dev20210618+cpu
torchaudio        0.10.0.dev20210618
**torchvision       0.3.0**
typing-extensions 3.10.0.0
wheel             0.36.2

<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->

## Expected behavior
nightly version of torch, torchvision, torchaudio will be installed, no error when try to import torchvision

<!-- A clear and concise description of what you expected to happen. -->

## Environment
Ubuntu 18.04

Please copy and paste the output from our
[environment collection script](https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py)
(or fill out the checklist below manually).

You can get the script and run it with:
```
wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py
```

PyTorch version: 1.10.0.dev20210618+cpu
Is debug build: False
CUDA used to build PyTorch: Could not collect
ROCM used to build PyTorch: N/A

OS: Ubuntu 18.04.5 LTS (x86_64)
GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Clang version: Could not collect
CMake version: version 3.15.5
Libc version: glibc-2.17

Python version: 3.7 (64-bit runtime)
Python platform: Linux-5.4.0-1047-azure-x86_64-with-debian-buster-sid
Is CUDA available: False
CUDA runtime version: 11.1.105
GPU models and configuration: Could not collect
Nvidia driver version: Could not collect
cuDNN version: Probably one of the following:
/usr/lib/x86_64-linux-gnu/libcudnn.so.8.2.0
/usr/lib/x86_64-linux-gnu/libcudnn_adv_infer.so.8.2.0
/usr/lib/x86_64-linux-gnu/libcudnn_adv_train.so.8.2.0
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_infer.so.8.2.0
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_train.so.8.2.0
/usr/lib/x86_64-linux-gnu/libcudnn_ops_infer.so.8.2.0
/usr/lib/x86_64-linux-gnu/libcudnn_ops_train.so.8.2.0
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[pip3] numpy==1.21.0
[pip3] torch==1.10.0.dev20210618+cpu
[pip3] torchaudio==0.10.0.dev20210618
[pip3] torchvision==0.3.0
[conda] numpy                     1.21.0                   pypi_0    pypi
[conda] torch                     1.10.0.dev20210618+cpu          pypi_0    pypi
[conda] torchaudio                0.10.0.dev20210618          pypi_0    pypi
[conda] torchvision               0.3.0                    pypi_0    pypi


## Additional context

<!-- Add any other context about the problem here. -->


cc @ezyang @gchanan @zou3519 @bdhirsh @jbschlosser @anjali411 @seemethere @malfet @walterddr