A very basic setting issue about spyder and anaconda for python
A very basic setting issue about spyder and anaconda for python
You can specify the Spyders Run Settings in Run -> Configure (F6). By default Execute in current Python or IPython console is selected and you probably do not have any open console in Spyder.
You can select Execute in a new dedicated Python console option and Spyder will automatically open a new console for you. Or you can leave the dafault option and create a new console yourself in the Consoles menu.
I have had the same problem. I am not able to fix it but I am able to successfully run the program the following two ways and I dont find any problems till now:
- By selecting IPython console (not the one with the Kernel id as its tab) then running your program.
- By selecting Execute in new dedicated Python console from Tools –> Preferences –> Run.
A very basic setting issue about spyder and anaconda for python
I was getting the same error message, but then realized I was not directing the PATH to my Python interpreter file at all. How I solved the problem:
Go to Tools > PYTHONPATH manager
Select Add path
Find and select your Python interpreter folder (for me this was C:Python27)
Related posts
- python – Converting string into datetime
- Python – TypeError: int object is not iterable
- python – How do I sort a dictionary by value?
- Does Python have a string contains substring method?
- python – Convert bytes to a string
- What is the Python equivalent for a case/switch statement?
- python – How do I list all files of a directory?