User Tools

Site Tools


documents:110803compilespyder

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
documents:110803compilespyder [2011/08/03 08:41] kotadocuments:110803compilespyder [2016/05/24 12:46] (current) – external edit 127.0.0.1
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) =====
Line 15: Line 15:
  
 ===== 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://www.riverbankcomputing.co.uk/software/sip/download|Download source from Riverbank]], compile and install by [[http://www.riverbankcomputing.co.uk/software/sip/download|Download source from Riverbank]], compile and install by
Line 24: Line 26:
  
 ===== Install PyQt (source) ===== ===== Install PyQt (source) =====
 +
 +Also using Qt command prompt. 
  
 [[http://www.riverbankcomputing.co.uk/software/pyqt/download|Download Source from Riverbank]] and compile & install by [[http://www.riverbankcomputing.co.uk/software/pyqt/download|Download Source from Riverbank]] and compile & install by
Line 42: Line 46:
 app.exec_() app.exec_()
 </sxh> </sxh>
 +
 +Note: I had to clean system environmental path before making the PyQt to work. Specifically, I deleted // c:\python26\lib\site-packages\pyQt\bin// from the Path, which I added a year ago when I first installed PyQt. This old installation was working, but had some problems with addressing the location of PyQt binaries. In the end, I had to move all the libraries under PyQt\bin to PyQt root (many people suggested so and indeed it worked, though awkward) 
  
 ===== Install Optional Modules ===== ===== Install Optional Modules =====
Line 87: Line 93:
 patched according to patched according to
 http://d.hatena.ne.jp/kk6/20110302 http://d.hatena.ne.jp/kk6/20110302
 +
 +Note:  The problem I encountered is "AccessInit: hash collision: 3 for both 1 and 1" error, related to the name space conflict coming from PIL package. For this error, refer to [[http://jaredforsyth.com/blog/2010/apr/28/accessinit-hash-collision-3-both-1-and-1/|here]] or [[http://stackoverflow.com/questions/2485295/the-problem-with-installing-pil-using-virtualenv-or-buildout|here]]. Afterward, I found more up-to-date fork of PIL (PIL has not been developed for pretty long time) [[http://pypi.python.org/pypi/Pillow/1.6|called "Pillow"]]. I might have tried using it if I knew before, but since current setup is working, I might try later when I encounter other problems. 
 +
 +
  
 ===== Compile Spyder ===== ===== Compile Spyder =====
documents/110803compilespyder.1312360916.txt.gz · Last modified: 2016/05/24 12:46 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki