Simple installation

Hi,

I am installing pytorch locally on MacOs El Capitan 10.11.6 in a conda environment. In attempts at both pip3 install torch torchvision and the
conda install pytorch torchvision -c pytorch, I haven’t been able to import torch (“module not found”). Would anybody know what I am doing wrong and what is the best way to fix it? Thanks.

Hi,

You want to make sure that the “pip3” you’re using is matching the “python” that you are using. In particular, make sure that they are both for python3.
To make sure you use the right pip to match the command line python3, you can do python3 -m pip the_rest_of_your_pip_command.

Thank you so much. That indeed was the issue.

Thank you so much. That indeed was the issue.