Numpy import throws AttributeError: 'module' object has no attribute 'core'

后端 未结 5 1750
清歌不尽
清歌不尽 2020-12-10 16:28
import numpy as np
  File \"/home/anirrudh/.virtualenvs/ml4t2/local/lib/python2.7/site-packages/numpy/__init__.py\", line 180, in 
    from . import ad         


        
5条回答
  •  情歌与酒
    2020-12-10 17:05

    Another common problem here (which I had)...check to make sure you dont have a PYTHONPATH env var pointing to a different version of python site-packages (this happened because I updated my python version and didn't change this...it loads from PYTHONPATH first).

提交回复
热议问题