Skip to main content
Spyder is an open-source included with Anaconda Distribution that offers advanced editing, interactive testing, debugging, and introspection features. Spyder integrates with popular scientific libraries such as NumPy, SciPy, and pandas.
More of a visual learner? Sign in to Anaconda.com and enroll in our Get Started with Anaconda course to learn to create a simple Python program with Spyder.

Installing Spyder

Spyder is included with Anaconda Distribution and can be installed using Navigator. To use Spyder with Miniconda, you must install the Spyder package on the command line.
To install Spyder using Navigator:
  1. Activate the environment where you want to install Spyder.
  2. Click Install on the Spyder tile.
    The Spyder tile in Anaconda Navigator with the Install button.

Launching Spyder

Launch Spyder using either Navigator or a command line terminal:
To launch Spyder using Navigator:
  1. Open Navigator.
  2. Activate the environment where you installed Spyder.
  3. From the Home tab, click Launch on the Spyder tile.

Creating and activating a conda environment

Before starting your Python project, Anaconda recommends creating a to isolate your project’s software packages and manage their dependencies. For more information about creating and activating a conda environment, see Environments.

Selecting your environment’s Python interpreter

To ensure your code has access to the correct code completion and type information for your project, select the conda environment associated with your project as the Python interpreter in Spyder.
  1. Open Spyder.
  2. Click the environment name in the status bar at the bottom of the Spyder window, then click Change default environment in Preferences… to open the Python interpreter preferences.
    The status bar in Spyder showing the current environment name.
  3. Select Selected interpreter.
  4. Select your environment from the dropdown. If it isn’t listed, enter or browse to the path of its Python interpreter.
  5. Click OK.

Using an external conda environment

If you want to run code in a conda environment that does not have Spyder installed, you must install the spyder-kernels package in that environment. Spyder uses spyder-kernels to connect its IPython Console to external interpreters. To set up an external environment for use with Spyder:
  1. Open (Terminal on macOS/Linux).
  2. Activate the environment you want to use:
  3. Install a compatible version of spyder-kernels:
    The required version of spyder-kernels must match your installed version of Spyder. If the IPython Console displays a version error after restarting the kernel, install the version shown in the error message.
  4. In Spyder, select the environment as your Python interpreter.
  5. Click Restart kernel in the Consoles menu for the change to take effect.
For more information on finding a specific interpreter path in your Anaconda installation, see Finding your Anaconda Python interpreter path.

Adding packages to your environment

To add packages to the conda environment you are using with Spyder:
  1. Open (Terminal on macOS/Linux).
  2. Activate the environment:
  3. Install the package:
  4. In Spyder, click Restart kernel in the Consoles menu so the new package is available.
For more information on installing packages, see Installing conda packages.

Updating Spyder

To update Spyder to the latest version available in your configured channels:
  1. Open (Terminal on macOS/Linux).
  2. Activate the environment where Spyder is installed:
  3. Update Spyder:
If you installed Spyder in the Anaconda Distribution base environment, run conda update anaconda before updating Spyder to ensure package compatibility. For more information, see How do I update Spyder using conda? in the Spyder FAQ.

Additional resources