Installing Python and Spyder

Students cheer on the Redhawks during a sporting event at Miami University.

  • Navigate the application - (0:33)
  • Spyder Editor - (0:57)
  • IPython Console - (1:47)
  • History log - (2:42)
  • Python Console - (2:57)
  • Object inspector - (3:11)
  • Help window - (3:26)
  • Preferences - (4:57)
  • Comment line - (5:32)
  • Clear console - (6:05)
  • Run code - (6:49)

There are several popular integrated development environments (IDEs) for Python, including PyCharm, Pyscripter, Emacs, Eric, and Spyder among others.

A comprehensive list of Python IDEs can be found at the Python Wiki page.

Unlike R, Python has no clear “winning” IDE. We recommend Spyder because it is well-designed for scientific computing and the popular packages associated with this type of work (NumPy, SciPy, pandas, matplotlib, etc.) are supported. If you installed Python before and wish to follow any of the instructions on this page, you should probably uninstall it and start fresh.

There are several ways to install Spyder. You can find installation directions in the Spyder 2.3 documentation page or by clicking one of the following buttons depending on your operating system and following the steps on the resulting page. We introduce how to install Spyder via Anaconda since the very useful and popular web application, Jupyter Notebook, is also included. For more detail about Jupyter Notebook, check out the section on Python Presentation Tools.

Windows Users

Step 1: Go to the Anaconda downloads page and download PYTHON 2.7.

Step 2: After you download the most recent version of Anaconda (the file will be named something like Anaconda-5.1.0-MacOSX-x86_64.pkg or Anaconda-4.0.0-MacOSX-x86_64.pkg), open the file you downloaded. You will see the welcome page of the installation wizard.

Step 3: Click I Agree.

Step 4: Select All Users (requires admin privileges) and click Next.

Step 5: Choose the default path! Click Next.

Step 6: Click Install.

Step 7: The installation will start! Click Next when the installation is complete.

Step 8: Click Finish.

Step 9: Next, let's test if the installation was successful. Go Windows → All Programs → Anaconda2 (64-bit) → Spyderspyder logo on button for opening program

Spyder Interface showing the main windows when first opened

Now, type print “Learning Python is fun!” in the Console 1/A (IPython console) as shown above and click the "Enter" key. If it works, you should be all set!

Note: Did you notice that it didn’t work if you copied print “Learning Python is fun!” directly from this page and simply pasted it in the console? Look at the quotation marks. You should see a slight difference between them.

Want to know more about the basics of coding in Anaconda and Spyder? See our Beginners page.

Mac Users

Step 1: Go to the Anaconda downloads page and download PYTHON 2.7.

Step 2: After you download the most recent version of Anaconda (the file will be named something like Anaconda-5.1.0-MacOSX-x86_64.pkg or Anaconda-4.0.0-MacOSX-x86_64.pkg), click the file. Then you will see the welcome page of the installation. Click Continue.

Step 3: Click Continue.

Step 4: Then You will see the license agreement page. Click Continue.

Step 5: After reading the license, click Agree.

Step 6: Select a destination for where you would like to install the program, then click Continue.

Step 7: Click Install and an installation page will appear.

Step 8: When prompted, click Close. Your install should be complete!

Step 9: Next, let's see if the install was successful. Find the Anaconda Navigator icon on your desktop or on the Launchpad.

Anaconda icon

Then click the icon. You will see the following page. Click OK or OK, and don't show again.

Anaconda Navigator pop-up screen prompting you with a check box option asking if you would like to improve Anaconda by allowing the software to collect data

Then you should see the Spyder icon. Click Launch.

Anaconda My Applications Interface displaying the multiple applications available to a user, including Spyder

Spyder will be launched and the main interface of the program will be displayed.

Spyder Interface is made up of three main windows when first opened. The Editor window on the left, the Object Inspector in the upper right, and the Console in the lower right.

Now, type print “Learning Python is fun!” in the Console 1/A (IPython console) located in the lower right of the interface. Click the "Enter" key and the text should appear printed in the Console just under your executed command. 

Note: Did you notice that it didn’t work if you copied print “Learning Python is fun!” directly from this page and simply pasted it in the console? Look at the quotation marks. You should see a difference between them.

Want to know more about coding in Anaconda and Spyder? Visit our Beginners page!