This can result from a namespace collision such as naming the file you are executing numpy.py. To fix this, change the name of the script you are executing.
numpy.py