Using numpy ‘module’ object has no attribute ‘array’ [duplicate]

You are most likely having a file called numpy.py in your working directory which shadows the real numpy module. Rename that file and remove its numpy.pyc file.

Leave a Comment