The Spyder (Scientific Python development environment) is a powerful interactive Python language development environment that provides advanced code editing, interactive testing, debugging and other features that support Windows, Linux, and OS X System.
This article installs the Spyder in a Win7 environment where only python2.7 are installed, and other environments will not be difficult. :)
The Spyder compiler is built into the Ps,winpython.
---------
1. Installing the Spyder
Open http://python-spyder.software.informer.com/2.7/
Download the latest source Zip package, after the local decompression, cmd CD into the extracted directory
Python setup.py Install
Very simple installation, the installation process has not reported any errors.
After installation, there will be a spyder.bat under the Python installation directory under scripts, and running it will start the Spyder
If your system variable contains this scripts directory, you can also start by entering the Spyder in CMD.
(My system variable path is set like this: ;%python_home%;%python_home%\scripts )
2, Installation PyQt4
Since the Spyder is based on PYQT4, if you start the Spyder the following error:
Just install a PyQt4 4.6+ version to
Install PYQT4 on Windows, for simple installation, or directly install the WHL format of the installation package, this package is compiled, the installation speed is relatively fast.
(If you have not installed the wheel module before, you only need to
Pip Install Wheel
)
Open http://www.lfd.uci.edu/~gohlke/pythonlibs/#pyqt4
Download the WHL file that corresponds to the Python version and the system version
I've downloaded a pyqt4-4.11.4-cp27-none-win32.whl here.
CMD in the CD to the WHL file directory
Pip Install PYQT4-4.11.4-CP27-NONE-WIN32.WHL
After installation, you enter in Python
Import PyQt4
The installation was successful without an error.
3, some small problems
The Spyder after the run is probably like this:
Frankly speaking, this form of the panel is not easy to drag, if you dragged the form is a mess, just need to "View" → "Reset window Layout".
----
If you are running a PY file, report the following warning:
It says there is no console is selected, at this time you have to "view" → "Panes" → "console" to see what is the problem.
Alternatively, in "run" → "Configure", set "Execute in a new dedicated Python console", then run the py file to try again.
Python Development Environment Spyder installation method