The easiest way to install Spyder is with the Anaconda Python distribution, which comes with everything you need to get started in an all-in-one package.
Download it from its webpage.
For more information, visit our Installation Guide.
From the command line (or Anaconda prompt on Windows), run:
conda update anaconda
conda update spyder
If this results in an error or does not update Spyder to the latest version, try:
conda install spyder=4
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.
We strongly recommend the latest available, to benefit from new features, bug fixes, performance improvements and usability enhancements.
You can launch it in any of the following ways:
From the command line: Type spyder in your terminal (or Anaconda prompt on Windows).
From Anaconda Navigator: Scroll to Spyder under Home, and click Launch.
*Windows Only*: Launch it via the Start menu shortcut.
With Binder, you can work with a fully functional copy of Spyder that runs right in your web browser.
Try it here.
Spyder works on modern versions of Windows, macOS and Linux (see the table below for recommended versions) via Anaconda, as well as other methods.
It typically uses relatively minimal CPU when idle, and 0.5 GB - 1 GB of RAM, depending on how long you’ve been using it and how many files, projects, panes and consoles you have open.
It should work on any system with a dual-core or better x64 processor and at least 4 GB of RAM, although 8 GB is strongly recommended for best performance when running other applications.
However, the code you run, such as scientific computation and deep learning models, may require additional resources beyond this baseline for Spyder itself.
High Sierra (10.13)
Select the environment you want to launch Spyder from under Applications on.
If Spyder is installed in this environment, you will see it in Navigator’s Home window.
Click Launch to start Spyder in your selected environment.
Activate your conda environment by typing the following in your terminal (or Anaconda Prompt on Windows):
conda activate <ENVIRONMENT-NAME>
Then, type spyder to launch the version installed in that environment.
The first approach for installing a package should be using conda.
In your system terminal (or Anaconda Prompt on Windows), type:
conda install <PACKAGE-NAME>
If your installation is not successful, follow steps 3 through 5 of Part 2 in our video on solving and avoiding problems with pip, Conda and Conda-Forge.
To work with an existing environment in Spyder, change Spyder’s default Python interpreter.
To do so, first go to your terminal (or Anaconda Prompt on Windows), type conda info --envs, and copy the path from the environment you created to your clipboard.
conda info --envs
Now, go to Preferences in Spyder’s main window, click Python interpreter and check Use the following Python interpreter.
Paste the path you copied before, add /bin/python at the end on Mac and Linux or /python.exe on Windows, and click OK.
Click Restart kernel in the Consoles menu for this change to take effect.
Either use the Reset Spyder to factory defaults under Tools in Spyder’s menu bar, the Reset Spyder settings Start menu shortcut (Windows), or run spyder --reset in your system terminal (Anaconda prompt on Windows).
Under General in Spyder’s Preferences, go to the Advanced settings tab and select your language from the options displayed under Language.
To create a cell in Spyder’s Editor, type #%% in your script.
Each #%% will make a new cell.
To run a cell, press Shift-Enter (while your cursor is focused on it) or use the Run current cell button in Spyder’s toolbar.
Spyder plugins are available in the spyder-ide conda channel.
To install one, type on the command line (or Anaconda Prompt on Windows):
conda install -c spyder-ide <PLUGIN>
Replace <PLUGIN> with the name of the plugin you want to use.
For more information on a specific plugin, go to the its repository:
Check the option Remove all variables before execution in the Configuration per file… dialog under the Run menu.
Select the appropriate option in the Configuration per file… dialog under the Run menu.
Go to Preferences and select the theme you want under Syntax highlighting theme in the Appearance section.
You should first follow the steps in our troubleshooting guide.
If you can’t solve your problem, open an issue by following the instructions in our Submit a Report section.
First, make sure the error you are seeing is not a bug in your code.
To confirm this, try running it in any standard Python interpreter.
If the error still occurs, the problem is likely with your code and a site like Stack Overflow might be the best place to start.
Otherwise, start at the Basic First Aid section of our troubleshooting guide.
If nothing is displayed in the calltip, hover hint or Help pane, make sure the object you are inspecting has a docstring, and try executing your code in the IPython Console to get help and completions there.
If this doesn’t work, try restarting PyLS by right-clicking the LSP Python label item in the statusbar at the bottom of Spyder’s main window, and selecting the Restart Python Language Server option.
For more information, go to the Completion/help not working section in the Common Illnesses page of our troubleshooting guide.
First, make sure your version of Spyder-Kernels is compatible with that of Spyder.
To install the right version, type the following on the command line (or Anaconda Prompt on Windows)
conda install spyder-kernels=<VERSION>
For more information, go to the Errors starting the kernel section in the Common Illnesses page of our troubleshooting guide.