Python 3.7.0, Spyder 3.7, macOS High Sierra
In the terminal, I activate the environment in which torch is installed, and then when I start python within the terminal (just by $python
), I can import torch and work with it. However, when I open Spyder in the same environment ($spyder
), it won't import torch, because it cannot find it for some reason.
I've tried out most things on the first couple of pages of google when you search this problem, including creating a new environment, tried both pip and conda installs, updated conda and spyder.
The errormessage I get is simply:
ModuleNotFoundError: No module named 'torch'
Does anyone know how I can fix this?