PyTorch doesn't import after installing Anaconda
I just installed PyTorch after installing Anaconda, and when I run iPython using Anaconda Python, it won't find PyTorch.




However I can verify PyTorch is in the pkgs directory of my anaconda folder.
What's going on?

While the framework name is Pytorch, it must be imported using the torch namespace like so import torch. If you look at the official documentation here, you will see any pytorch related module import like nn or autograd is done through the torch namespace. I admit it is a bit confusing but I guess it was done to instill a sense of familiarity for old torch7 users. Also, there is a very good introduction tutorial which you could probably use to familiarize yourself better with the ins and outs of pytorch found here. Hope this helps!
