documents:110803compilespyder
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
documents:110803compilespyder [2011/08/02 15:25] – created kota | documents:110803compilespyder [2011/08/03 08:58] – kota | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Compiling Spyder (Python IDE) ====== | ====== Compiling Spyder (Python IDE) ====== | ||
- | Spyder is a matlab-like IDE for scientific computing. Following assumes that numpy and scipy is already installed in your python. I compiled spyder in both windows (32bit) and OSX machine (64bit) and both worked well. Below is compiling procedure for Windows. | + | Spyder is a matlab-like IDE for scientific computing. Following assumes that numpy and scipy is already installed in your python. I compiled spyder in both windows (32bit) and OSX machine (64bit) and both worked well. Below is compiling procedure for Windows. There are bundled packages available as well. See notes at the end of this page for the reason I set them up by myself. |
===== Install Qt (binary) ===== | ===== Install Qt (binary) ===== | ||
Download binary (" | Download binary (" | ||
- | I used "Qt libraries 4.7.3 for Windows (minGW 4.4, 319 MB)". mingW was chosen since I had many troubles before with VC compiled python modules. Since compiler is better be always same, I use mingW. | + | I used "Qt libraries 4.7.3 for Windows (minGW 4.4, 319 MB)" |
+ | |||
+ | http:// | ||
+ | |||
+ | mingW binary | ||
**Important**: | **Important**: | ||
===== Install SIP (source). ===== | ===== Install SIP (source). ===== | ||
+ | |||
+ | After installing Qt, use Qt-command prompt (you will see it under menu tree start - programs - Qt by Nokia... ) for installing SIP and PyQt. Much less problem occurs by using this Qt specific command prompt. | ||
[[http:// | [[http:// | ||
Line 20: | Line 26: | ||
===== Install PyQt (source) ===== | ===== Install PyQt (source) ===== | ||
+ | |||
+ | Also using Qt command prompt. | ||
[[http:// | [[http:// | ||
Line 38: | Line 46: | ||
app.exec_() | app.exec_() | ||
</ | </ | ||
+ | |||
+ | Note: I had to clean system environmental path before making the PyQt to work. Specifically, | ||
===== Install Optional Modules ===== | ===== Install Optional Modules ===== | ||
- | - use easy_install | + | There is a list of recommended (though optional) modules in Spyder site. I installed them all using easy_install. |
- | -- rope | + | |
- | -- pyflakes | + | * rope |
+ | | ||
+ | * pyReadline (this module is not in the list, but was recommended after installing Spyder showing up in its console) | ||
+ | |||
+ | I already had numpy, scipy, matplotlib, sphinx & Ipython installed. I only updated numpy using superpackage. | ||
===== Compile Spyder: preparation ===== | ===== Compile Spyder: preparation ===== | ||
- | Some changes are required for PIL module being easy-to-be namespace conflicted in some imports. | + | Some changes are required for PIL module being easy-to-be namespace conflicted in some imports. Error occurred during //python setup.py install// of Spyder in some modules due to way PIL module is imported. For example, //import Image// is not specific because there are other python file with name Image.py in module other than PIL. Then import fails. |
Change follwoing codes: | Change follwoing codes: | ||
Line 78: | Line 93: | ||
patched according to | patched according to | ||
http:// | http:// | ||
+ | |||
+ | Note: The problem I encountered is " | ||
+ | |||
+ | |||
===== Compile Spyder ===== | ===== Compile Spyder ===== | ||
Line 88: | Line 107: | ||
===== Notes ===== | ===== Notes ===== | ||
- | * If you want to install in windows, one could also use " | + | |
- | * Also on windows, there is a great site distributing modules as binary .exe. See[[http:// | + | |
- | * I especially wanted to compile PyQt by myself, since this is a key module that needs to be under a good control. Many modules use PyQt. | + | * [[http:// |
+ | * Also on windows, there is a great site distributing modules as binary .exe. See[[http:// | ||
documents/110803compilespyder.txt · Last modified: 2016/05/24 12:46 by 127.0.0.1