Sublime Text ModuleNotFoundError

When I execute the command ‘import torch’ in Sublime Text, a ModuleNotFoundError occurs.
However, the command works in the terminal (macOS).