how to see where exactly torch is installed pip vs conda torch installation
On my machine i can't &quot;pip install torch&quot; - i get infamous &quot;single source externally managed error&quot; - i could not fix it and used &quot;conda install torch&quot; from anaconda.
Still, checking version is easy - torch.__version__
But how to see where is it installed -the home dir of torch?
Suppose if I had had both torches installed via pip and conda - how to know which one is used in a project?
import torch
print(torch__version__)


You can get torch module location which is imported in your script
import torch
print(torch.__file__)

