Module 'Numpy' Has No Attribute Linespace [Closed]
I Tried This Piece of Code but It Kept Giving Me the Same Error. I'm Sure I Have No Other Script Named Numpy in the Directory. I Have Tried Uninstalling and...
I tried this piece of code but it kept giving me the same error. I'm sure I have no other script named numpy in the directory. I have tried uninstalling and reinstalling it but nothing works.
import numpy as np; from numpy import pi
theta = np.linespace(-np.pi, np.pi, 100)
When ran, it returned module 'numpy' has no attribute 'linespace'. In fact, no other modules works, any idea why?
Its np.linspace() instead of np.linespace().