Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python Error name 'runfile' is not defined in Spyder

Tags:

python-2.7

I get error: name 'runfile' is not defined in Spyder (Python 2.7) although I have change my working directory where I save my scripts. I just run the code in command line, but I want run it in Spyder. How can I solve it?

Thanks.

like image 716
Tuan Ng Avatar asked Jan 18 '16 03:01

Tuan Ng


1 Answers

There probably are multiple things that could be causing this. I ran into this issue and what was causing it for me was an issue with sitecustomize. After searching for a solution (details from my search here: Spyder 'runfile' is not defined), I essentially needed to go to a command prompt (cmd in Windows) and type:

spyder --reset
spyder --default
like image 137
theHamburglar Avatar answered Sep 19 '22 15:09

theHamburglar