Happened right after I tried to install via conda on OSX.
↪ conda install pytorch torchvision -c soumith
[...]
# All requested packages already installed.
# packages in environment at /Users/scott/anaconda:
#
pytorch 0.2.0 py36_4cu75 soumith
torchvision 0.1.9 py36_1 soumith
↪ python
[...]
>>> import torch
RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/scott/anaconda/lib/python3.6/site-packages/torch/__init__.py", line 53, in <module>
from torch._C import *
ImportError: numpy.core.multiarray failed to import
>>> import torch
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/scott/anaconda/lib/python3.6/site-packages/torch/__init__.py", line 53, in <module>
from torch._C import *
ValueError: module functions cannot set METH_CLASS or METH_STATIC
>>> import numpy as np
>>> np.__version__
'1.12.1'
Happened right after I tried to install via conda on OSX.