This does not solve it for me:
import numpy as np
np.__version__

'1.11.2'

import torch 

---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-2-21195f21f05e> in <module>()
----> 1 import torch

/home/twenty/anaconda3/envs/mp/lib/python3.5/site-packages/torch/__init__.py in <module>()
     51 sys.setdlopenflags(_dl_flags.RTLD_GLOBAL | _dl_flags.RTLD_NOW)
     52 
---> 53 from torch._C import *
     54 
     55 __all__ += [name for name in dir(_C)

ImportError: numpy.core.multiarray failed to import