"ModuleNotFoundError: No module named torchvision"

I have seen several posts concerning this but the fixes did not seem to work for me.

I did the following:

  1. Installed python version 3.7
  2. Created an environment with “conda create -n pytorchbook anaconda”
  3. Conda activate pytorchbook (this works)
  4. Installed several packages “conda install pytorch torchvision cudatoolkit=10.2 -c pytorch” (worked)
  5. python
  6. Python 3.7.9 (default, Aug 18 2020, 06:22:45)
  7. import torch (works)

  8. import torchvision
    Traceback (most recent call last):
    File “”, line 1, in
    ModuleNotFoundError: No module named 'torchvision

After taking some suggestions, like loading with pip, etc, which still failed (not the install but the import), I removed the pytorchbook environment and started again from a clean slate.

Not sure of where to go from here.

Thank You
Tom

Could you post the install log after running conda install..., as it should show if and which torchvision version was installed?