
No matter what run code will appear:
> Runfile (' D:/PythonWorkspace/ABC. Py, wdir="D:/PythonWorkspace)
Traceback (the most recent call last) :
The File "& lt; Stdin>" , line 1, in
NameError: name 'runfile' is not defined
But in python IDLE or normal, just can't run any file in the spyder,
Looking insight to help, I don't want to do system,

CodePudding user response:
Open the Tools/Preferences select Run TAB, select "Execute in a new dedicated Python interpreter, such an approach can temporarily Run, but in Python consloe and Ipython consloe or hint NameError: the name 'runfile' is not definedCodePudding user response:
Solve the building Lord, I am also the same problem, not thinking about it unloaded the anaconda, under heavy but really loathe to give up, so many packagesCodePudding user response:
You selected all the code, the right mouse button click the Run button Cell is running