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?
1 Answer
Its np.linspace() instead of np.linespace().