I try to run code in Spyder and get an error like this. But I ran the code successfully in the Spyder in Anaconda enter image description here