简体   繁体   中英

python numpy ImportError: No module named core

Im unable to launch a python script using numpy - any idea what/where this core is?

Traceback (most recent call last):
  File "/scripts/python/foo.py", line 9, in <module>
    import numpy
  File "/packages/python/2.7.2/lib/python2.7/site-packages/numpy/__init__.py", line 156, in <module>
    import ma
  File "/packages/python/2.7.2/lib/python2.7/site-packages/numpy/ma/__init__.py", line 44, in <module>
    import core
ImportError: No module named core

You are using a very old numpy version (older than 1.7, which was released 4+ years ago) that still uses implicit relative imports within the package. The error you're seeing is a common issue with such imports, and has been addressed in more recent NumPy releases. Update NumPy, and this problem should go away.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM