How to change the path of Python in Spyder?

Viewed 96468

I'm using Debian. I installed Python 3.2.3. The path of Python 3 is /usr/bin/python3. How do I change it in Spyder?

5 Answers

With Spyder v. 4.2.5 that comes with Anaconda3 v. 4.10.1, I do not see 'Console' on the left in the Preferences menu (i.e. Tools>Preferences). In this version you can change the path to the python.exe file under Python interpreter on the left.

enter image description here

Execute the following command: %cd"P:\Python"

I was having this problem after downloading a new version of Python and trying to use it in my Spyder without Anaconda installed.

Besides changing the path to the python.exe file under Python interpreter on the left as mentioned above by @HerrKaputt and @Pfalbaum. I had to install the spyder-kernels in the new python.

This can be done by running the following command in the cmd-pront (in my case i dont use Anaconda):

pip install spyder-kernels==2.3.*

If your python is installed in the anaconda. You can try this: Spyder, spyder-kernels and python version compatibilities?

Related