Import error when importing torch
I didn't make any change but it suddenly doesn't work.

&gt;&gt;&gt; import torch
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  File "/Users/cheng/anaconda/envs/py36/lib/python3.6/site-packages/torch/__init__.py", line 56, in &lt;module&gt;
    from torch._C import *
ImportError: numpy.core.multiarray failed to import


I tried pip install numpy -I but it didn't work. 

My OS is Mac OS X, and I tried to install by both pip and conda. Reinstall the env didn't work as well.

pytorch version 0.3.1

numpy version 1.14.2

Solution:

Do not name your file tokenize.py!

Solution according to OP:

A file named tokenize.py in the current directory caused this issue.
