Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
fxy2012 opened this issue Nov 18, 2019 · 2 comments
Closed

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

fxy2012 opened this issue Nov 18, 2019 · 2 comments

Comments

@fxy2012
Copy link

fxy2012 commented Nov 18, 2019

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
Copy link
Owner

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

@yuyingyeh
Copy link

yuyingyeh commented Feb 7, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants