Installation
Spyder has been successfully tested on Microsoft Windows XP/Vista, GNU/Linux and MacOS X.
Installing on MacOS X
Spyder is available through MacPorts.
On MacOS X 10.6-10.7, it is known that the Python standard library locale is raising this error: ValueError: unknown locale: UTF-8. To fix this, you will have to set these environment variables in .profile (or .bashrc) manually:
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
Installing on Linux
Installing on Debian (unstable):
- as root user: apt-get install spyder
The Spyder's official Debian package is available here.
Spyder is also available in Ubuntu since v10.10 but the package could be outdated:
- try this: sudo apt-get install spyder
Installing on Ubuntu:
- Using the official package:
- Ubuntu package: as mentioned above, this package could be slightly outdated
- Debian package: this is the recommended way if the Ubuntu package is outdated
- Using the setuptools module and its easy_install script:
- Requirements: sudo apt-get install python-qt4 python-sphinx
- Installing using setuptools (.egg file): sudo easy_install spyder
- Updating using setuptools: sudo easy_install -U spyder
Spyder is also available in other GNU/Linux distributions, like for example archlinux, Fedora, Gentoo or openSUSE.
Installing on Windows XP/Vista/7
The easy way -- thanks to Python(x,y):
- Requirements and optional modules: download/install Python(x,y)
- Spyder is already included in Python(x,y)
Updating Spyder in Python(x,y):
- Updating Python(x,y) will update Spyder if necessary (Python(x,y) is updated ~monthly)
- Updating Spyder manually: from here or there
- Updating Spyder manually - option 2: if the Python(x,y) plugin is outdated, either be patient (it certainly won't be outdated for long...) or uninstall the Spyder plugin and install the .msi installer available from this page
The "hard" way:
- Requirements: Python language, PyQt4
- Recommended optional modules: numpy, scipy, matplotlib and Python Imaging Library (PIL)
- Installing Spyder itself: download/install the .exe file available from this page
- Updating Spyder: install the new version with the .exe installer (this will automatically uninstall any previous version only if this version was installed with the same kind of installer - i.e. not with an .msi installer)
Install or run directly from source
Requirements
Spyder v2.x requires:
- Python v2.x (x>=5)
- Spyder v2.0 and v2.1:
- Spyder v2.2:
- sphinx >= v0.6 (documentation generation)
Optional but highly recommended modules for Spyder:
- (Spyder v2.x) rope 0.9.x (x>=0) -- for code completion / go-to-definition features in source code editor
- pyflakes 0.x (x>=3) -- for real-time code analysis
- IPython 0.10 (enhanced Python interpreter) - Important note: on Windows platforms, it is strongly recommended to install pywin32 for a better IPython support
- pylint (code analysis)
- NumPy (N-dimensional arrays)
- SciPy (signal/image processing)
- Matplotlib (2D plotting)
- psutil (memory/CPU usage in status bar)
Installation procedure
Installing from source package (.zip):
- unzip the source package
- change current directory to the unzipped directory
- as root user: python setup.py install
Run Spyder without installing it
Executing Spyder without having to install it first:
- unzip the source package
- change current directory to the unzipped directory
- run Spyder: python spyder
- eventually build the documentation: python setup.py build_doc
Install the development version
Installing the next Spyder version:
- install Mercurial, a simple and powerful source control management tool
- clone Spyder v2.x source code repository:
hg clone https://spyderlib.googlecode.com/hg/ spyderlib - later, keep your repository up-to-date:
hg pull -u Since v2.0.0rc1, if you want to read the documentation, you must build it first:
- if you have installed Spyder (python setup.py install), it's already done
- if you are using Spyder without installation, for example when using the Mercurial repository, you need to build explicitely the documentation: python setup.py build_doc
Are there any installation instructions for Mac OS X?
There are no specific instructions for MacOS X -- just install it as you would install any other Python package (from source with python setup.py install or using setuptools with easy_install spyder)
easy_install spyder doesn't install all the dependencies, e.g. PyQt4?.
Hi all, I tried to install spyder on Mac Os X Snow Leopard 10.6 but it did not work. It complains about not finding qsci: ImportError?: No module named Qsci I previously installed SIP, PyQTQ and QScintilla2 from source and everything went well. Any idea?
Thank you, Guido
I installed spyder on Snow Leopard using the easy_install method but when I try to run spyder I get the following error:
ImportError?: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/sip.so, 2): no suitable image found. Did find:
I have the same problem. I installed everything QT, SIP, PyQT, Qscintilla on my Mac running on Snow Leopard, then I installed the Spyder using easy_install which was fine. But then when I type Spyder to run the program it said:
Traceback (most recent call last):
ImportError?: dlopen(/Library/Python/2.6/site-packages/PyQt4?/QtCore?.so, 2): no suitable image found. Did find:Would be great if someone knows a way to solve this. Thanks a lot.
seems noone can install spyder on OSX, including me. Pierre, can you proove that it is "available for Windows XP/Vista/7, GNU/Linux and MacOS X" with an OSX screenshot?
I too would be very interested in instruction for a Snow Leopard install. Being new to Python, I was hoping Spyder could help me get into things, with the autocomplete and debugger - but without a clear path to install the thing, it is a real bust :(
I was able to successfully install Spyder on Snow Leopard, mainly guided by the following link: http://chinbilly.blogspot.com/2010/01/building-pyqt4-on-snow-leopard.html
In short, you have to make sure that you install/compile packages (Qt, Python, sip and PyQt?) in 64 bit architecture (with 'x86_64' option). When compiling sip and PyQt?, for example, I configured with 'python configure.py --arch x86_64' and 'python configure.py --use-arch x86_64', respectively. Once you are able to import PyQt4?.QtCore? without any error message, you should be able to run spyder.
Thank you doshik3, that's the way.
Thank you all for your comments but the more effective way to get help is to post on Spyder's discussion group. Even better, there is already a thread regarding MacOS X installation issues: http://groups.google.com/group/spyderlib/browse_thread/thread/0a590893ec9afc57 so please contribute! Thanks!
One important advice is to uninstall whatever other Python distribution in the machine and leave just the Apple (64 bits) distribution.
I had the MacPython? distribution installed and it made impossible to compile PyQt4?. After uninstalling MacPython? everything went fine.
To uninstall MacPython?: Remove /Library/Frameworks/Python.framework and everything in it; remove /Applications/MacPython?-2.3 and everything in it; in /usr/local/bin, remove idle, idle2.5, pydoc, pydoc2.5, python, python-config, python2.5, python2.5-config, pythonw, pythonw2.5, smtpd.py, smtpd2.5.py.
(Taken from http://homepages.cwi.nl/~jack/macpython/uninstall.html and http://phd.kt.pri.ee/2008/11/27/how-to-tame-python-and-uninstall-packages-in-mac-os-x/)
It says "Python 2.6 is not installed on your computer", but it is. Is this incompatible with 64-bit Python?
Hi All,
installed spyder on a debian sid 64 bit, tring to run i get :
/usr/lib/python2.5/site-packages/spyderlib/utils/init.py:47: Warning: 'with' will become a reserved keyword in Python 2.6 Traceback (most recent call last):
SyntaxError?: invalid syntaxhave you any clue on what's wrong ?
thanks!!!
Here is how to install it on Mac OS X: Download and install SCIPY, NUMPY, and MATPLOTLIB. The Scipy superpack for Mac users is currently no longer available so this may be a problem... Hopefully someone will set up a mirror soon.
Download and install the COCOA 32/64-bit Qt SDK from: http://qt.nokia.com/downloads/mac-os-cpp Once the download finishes, you can double click and install (its a binary package). Everything should go ok here.
Download the SIP source from: http://www.riverbankcomputing.co.uk/software/sip/download Open a terminal cd to the Downloads (place where you saved the tarball) tar xvzf sip-4.10.tar.gz cd sip-4.10 python configure.py make sudo make install
Download the PyQt4? source from: http://www.riverbankcomputing.co.uk/software/pyqt/download cd to Downloads tar xvzf PyQt?-mac-gpl-4.7.tar.gz cd PyQt?-mac-gpl-4.7 python configure.py (accept the terms of the license) make sudo make install
Download the QScintilla source from: http://www.riverbankcomputing.co.uk/software/qscintilla/download cd to Downloads tar xvzf QScintilla-gpl-2.4.2.tar.gz cd QScintilla-gpl-2.4.2 cd Qt4 qmake qscintilla.pro -spec macx-g++ make sudo make install cd .. cd Python python configure.py make sudo make install
Download the Spyder source from: http://code.google.com/p/spyderlib/downloads/list (Get the TAR.GZ) cd to Downloads tar xvzf spyder-1.0.2.tar.gz cd spyder-1.0.2 sudo python setup.py install
No .exe file works in windows XP x64 environment, it cannot find the python26 in registry. However, use easy_install could properly install it. The Parallel Python got the same problem. I think you just look python in wrong place (x32 and x64 registry are little bit different). Maybe you could fix it very easily?
Has any one tried installing on OS X using mac ports?
Just a quick heads up for anyone who might be thinking of installing spyder on a PPC rig, there are some deviations from godwin.jeffery's method to follow.
When installing SIP before you run the command to get python to do the configuration you should edit the configuration.py for SIP, on line 41 under # Constants. Change the line from: DEFAULT_MACOSX_ARCH = 'i386 ppc' to: DEFAULT_MACOSX_ARCH = 'ppc'
Next, when installing QScintilla when running the qmake command it should look like this: qmake qscintilla.pro -spec macx-g++ "CONFIG+=ppc"
This should get Spyder up and running, hope this helps!