Sublime Forum

Error Importing Torch using Sublime (OSX)

#1

I have installed Torch for Python 3.6 using the conda installer. I am trying to run the following command:

import torch

I can run this command from the terminal.

However, if I build using Sublime Text (MAC: Command + B), I get ModuleNotFoundError: No module named ‘torch’.

Command + B has been set to build using Python 3.6.

I don’t understand why this is happening.

0 Likes