It looks like the issue is there as my path does not include “anaconda”.
>>> import torch
>>> torch.__path__
['/home/renaud/.local/lib/python3.6/site-packages/torch']

even though the command which python includes the path of my conda env.