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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With