Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change python version in anaconda spyder

I am using 3.6 Python version in anaconda spyder on my mac. But I want to change it to Python 2.7.

Can any one tell me how to do that?

like image 691
Jeevan Avatar asked Apr 24 '17 16:04

Jeevan


People also ask

How do I change the version of Python on my Spyder Anaconda?

Open the “gear” menu in Spyder's section under Home in Navigator. Go to Install specific version and select the version of Spyder you want to use.

What version of Python does Spyder use?

The requirements to run Spyder are: Python 2.7 or >=3.3. PyQt5 >=5.5.

How do I switch between Python versions?

Yes, you should be able to switch between python versions. As a standard, it is recommended to use the python3 command or python3. 7 to select a specific version. The py.exe launcher will automatically select the most recent version of Python you've installed.


Video Answer


2 Answers

You can open the preferences (multiple options):

  • keyboard shortcut Ctrl + Alt + Shift + P
  • Tools -> Preferences

And depending on the Spyder version you can change the interpreter in the Python interpreter section (Spyder 3.x):

enter image description here

or in the advanced Console section (Spyder 2.x):

enter image description here

like image 109
MSeifert Avatar answered Oct 11 '22 10:10

MSeifert


First, you have to run below codes in Anaconda prompt,

conda create -n py27 python=2.7  #for version 2.7 activate py27  conda create -n py36 python=3.6  #for version 3.6 activate py36 

Then, you have to open Anaconda navigator and, enter image description here The button might say "install" instead of Launch. After the installation, which takes a few moments, It will be ready to launch.

Thank you, @cloudscomputes and @Francisco Camargo.

like image 34
M.Hossein Rahimi Avatar answered Oct 11 '22 12:10

M.Hossein Rahimi