PANKAJs-MacBook-Pro:~ pankajjadhav$ source activate python27
(python27) PANKAJs-MacBook-Pro:~ pankajjadhav$  pip install torchvision
Requirement already satisfied: torchvision in ./anaconda3/envs/python27/lib/python2.7/site-packages/torchvision-0.1.9-py2.7.egg
Requirement already satisfied: numpy in ./anaconda3/envs/python27/lib/python2.7/site-packages (from torchvision)
Requirement already satisfied: pillow in ./anaconda3/envs/python27/lib/python2.7/site-packages (from torchvision)
Requirement already satisfied: six in ./anaconda3/envs/python27/lib/python2.7/site-packages (from torchvision)
Requirement already satisfied: torch in ./anaconda3/envs/python27/lib/python2.7/site-packages (from torchvision)
Requirement already satisfied: pyyaml in ./anaconda3/envs/python27/lib/python2.7/site-packages (from torch->torchvision)
notebook:
import torchvision
ModuleNotFoundError                       Traceback (most recent call last)
 in ()
----> 1 import torchvision
ModuleNotFoundError: No module named ‘torchvision’
In [3]:
import torch
​
ModuleNotFoundError                       Traceback (most recent call last)
 in ()
----> 1 import torch
ModuleNotFoundError: No module named ‘torch’