xiumingzhang / GenRe-ShapeHD

Code and Data Release for GenRe (NeurIPS 2018) and ShapeHD (ECCV 2018)
http://genre.csail.mit.edu/
294 stars 62 forks source link

ImportError: numpy.core.multiarray failed to import #40

Closed fxy2012 closed 5 years ago

fxy2012 commented 5 years ago

Hello, Xiuming. I ran codes following your steps, while when I ran ./build_toolbox.sh to build the environment, errors occurred as follows. Could you please help me solve this problem?

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/fxy/anaconda3/envs/shaperecon/lib/python3.6/site-packages/torch/__init__.py", line 80, in <module>
    from torch._C import *
ImportError: numpy.core.multiarray failed to import

Thanks a lot!

xiumingzhang commented 5 years ago

This is usually due to your PYTHONPATH being messed up: very likely it contains paths to two numpy libraries.

yuyingyeh commented 4 years ago

Hi @xiumingzhang , in this post it said that Anaconda doesn't use PYTHONPATH. I also encountered same problem.