How to install Spyder ? | Spyder IDE21st August 2018
Spyder is quite easy to install on any popular OS.
Just the read the following instructions carefully.
Installing on Windows Vista/7/8/10
The easy way
Spyder is already included in these Python Scientific Distributions:
You can start using it immediately after installing one of them (you only need to install one!).
The hard way
If you want to install Spyder directly, you need to follow these steps:
You can update Spyder by:
Updating Anaconda, WinPython or Python(x,y).
Or using this command (in case you don’t use any of those scientific distributions):1<span class="n">pip</span> <span class="n">install</span> <span class="o">--</span><span class="n">upgrade</span> <span class="n">spyder</span>
This command will also update all Spyder dependencies
Installing on MacOS X
The easy way
Thanks to the Spyder team and Continuum, you have two alternatives:
The minimal version to run our DMG’s is Mavericks (10.9) since Spyder 2.3.5. Previous versions work on Lion (10.7) or higher.
The hard way
Thanks to the MacPorts project, Spyder can be installed using its
port package manager. There are several versions available from which you can choose from.
It is known that the MacPorts version of Spyder is raising this error:
ValueError: unknown locale: UTF-8, which doesn’t let it start correctly.
To fix it you will have to set these environment variables in your
12 <span class="n">export</span> <span class="n">LANG</span><span class="o">=</span><span class="n">en_US</span><span class="o">.</span><span class="n">UTF</span><span class="o">-</span><span class="mi">8</span><span class="n">export</span> <span class="n">LC_ALL</span><span class="o">=</span><span class="n">en_US</span><span class="o">.</span><span class="n">UTF</span><span class="o">-</span><span class="mi">8</span>
Installing on Linux
Please refer to the Requirements section to see what other packages you might need.
Using the official package manager:
sudo apt-get install spyder.
This package could be slightly outdated. If you find that is the case, please use the Debian package mentioned below.
Using the pip package manager:
sudo pip install spyder
sudo pip install -U spyder
Using the package manager:
sudo apt-get install spyder
The Spyder’s official Debian package is available here
Spyder is also available in other GNU/Linux distributions, like
Please refer to your distribution’s documentation to learn how to install it there.
Installing or running directly from source
The requirements to run Spyder are:
- Python 2.7 or >=3.3
- PyQt5 >=5.2 or PyQt4 >=4.6.0 (PyQt5 is recommended).
- Qtconsole >=4.2.0 – for an enhanced Python interpreter.
- Rope >=0.9.4 and Jedi <http://jedi.jedidjah.ch/en/latest/> 0.9.0 – for code completion, go-to-definition and calltips on the Editor.
- Pyflakes – for real-time code analysis.
- Sphinx – for the Help pane rich text mode and to get our documentation.
- Pygments >=2.0 – for syntax highlighting and code completion in the Editor of all file types it supports.
- Pylint – for static code analysis.
- Pep8 – for style analysis.
- Psutil – for memory/CPU usage in the status bar.
- Nbconvert – to manipulate Jupyter notebooks on the Editor.
- Qtawesome >=0.4.1 – for an icon theme based on FontAwesome.
- Pickleshare – To show import completions on the Editor and Consoles.
- PyZMQ – To run introspection services on the Editor asynchronously.
- QtPy >=1.1.0 – To run Spyder with PyQt4 or PyQt5 seamlessly.
- Chardet >=2.0.0– Character encoding auto-detection in Python.
- Numpydoc Used by Jedi to get return types for functions with Numpydoc docstrings.
- Matplotlib >=1.0 – for 2D and 3D plotting in the consoles.
- Pandas >=0.13.1 – for view and editing DataFrames and Series in the Variable Explorer.
- Numpy – for view and editing two or three dimensional arrays in the Variable Explorer.
- Sympy >=0.7.3 – for working with symbolic mathematics in the IPython console.
- Scipy – for importing Matlab workspace files in the Variable Explorer.
If you use Anaconda, you need to run this command to install Spyder:
conda install spyder
If you don’t use Anaconda, you need to run:
pip install --upgrade spyder
Run without installing
You can execute Spyder without installing it first by following these steps:
- Unzip the source package
- Change current directory to the unzipped directory
- Run Spyder with the command
- (Optional) Build the documentation with
python setup.py build_doc.
This is especially useful for beta-testing, troubleshooting and development of Spyder itself.
Installing the development version
If you want to try the next Spyder version, you have to:
Install Spyder requirements
Install Git, a powerful source control management tool.
Clone the Spyder source code repository with the command:
git clone https://github.com/spyder-ide/spyder.git
To keep your repository up-to-date, run
inside the cloned directory.
(Optional) If you want to read the documentation, you must build it first with the command
python setup.py build_doc
(Any Comment related to this post or for any help/discussion please write here.)