downloaded from
by default, installed under C:\Python26
Then installing site-packages.
Both downloaded from the link in
Just clicking and executing.
matplotlib-1.0.0.win32-py2.6.exe downloaded from link in http://matplotlib.sourceforge.net/
downloaded
from
and click to install.
check from IDLE:
IDLE 2.6.5 >>> import IPython >>> print IPython.__version__ 0.10 >>>
From the program menue, select IPython → Pylab starts up a command line tool that shows
********************************************************************** Welcome to IPython. I will try to create a personal configuration directory where you can customize many aspects of IPython's functionality in: C:\Documents and Settings\Miura\_ipython Initializing from configuration: C:\Python26\Lib\site-packages\IPython\UserConfi g Successful installation! Please read the sections 'Initial Configuration' and 'Quick Tips' in the IPython manual (there are both HTML and PDF versions supplied with the distribution) to make sure that your system environment is properly configured to take advantage of IPython's features. Important note: the configuration system has changed! The old system is still in place, but its setting may be partly overridden by the settings in "~/.ipython/ipy_user_conf.py" config file. Please take a look at the file if some of the new settings bother you. Please press <RETURN> to start IPython.
C:\Python26;C:\Python26\Lib;C:\Python26\Lib\site-packages
C:\Python26
Test with the following code:
>>> import numpy, scipy >>> numpy.test()
… then get errors:
Running unit tests for numpy Traceback (most recent call last): File "<pyshell#1>", line 1, in <module> numpy.test() File "C:\Python26\Lib\site-packages\numpy\testing\nosetester.py", line 321, in test self._show_system_info() File "C:\Python26\Lib\site-packages\numpy\testing\nosetester.py", line 187, in _show_system_info nose = import_nose() File "C:\Python26\Lib\site-packages\numpy\testing\nosetester.py", line 69, in import_nose raise ImportError(msg) ImportError: Need nose >= 0.10.0 for tests - see http://somethingaboutorange.com/mrl/projects/nose
seems that I need to install another module called nose so download the file, unzip. From DOS prompt go into the folder \nose-0.11.2. Then
>C:\temp\nose-0.11.2>python setup.py install
according to
I get the following test failure on all msvc9 builds of numpy 1.5.0.dev for Windows. A patch is attached. {{{ ERROR: test_filename (test_memmap.TestMemmap) ---------------------------------------------------------------------- Traceback (most recent call last): File "X:\Python26-x64\lib\site- packages\numpy\core\tests\test_memmap.py", line 60, in test_filename os.unlink(tmpname) WindowsError: [Error 32] The process cannot access the file because it is being used by another process: }}}
This seems to be already reported.
#1550: Memmap test failure ----------------------+----------------------------------------------------- Reporter: cgohlke | Owner: somebody Type: defect | Status: closed Priority: normal | Milestone: 1.5.0 Component: Other | Version: devel Resolution: fixed | Keywords: ----------------------+----------------------------------------------------- Changes (by rgommers): * status: new => closed * resolution: => fixed Comment: Thanks, applied in r8606, r8607.
for this error, some people say its not really problem:
… so maybe ignore for now and wait for the new release to include the fix above.
http://matplotlib.sourceforge.net/
from DOS command prompt
from pylab import * plot([1,2,3]) show()
this does work. Shows a new window with plot.
Install Pydev
set path to the python interpreter in C:\Python26. Then make a new project, and inside create a new python module.
using the same code as above, run the script
—> this does work as well. Shows a new window with plot.
In the bottom console, select “Pydev console” from “Open Console” icon. This will start up interactive python interpreter.
Jython interpreter must be used instead of Python interpreter for accessing Java. For this, pydev installed in eclipse do the job. This is quite useful but the drawback is that one cannot use numpy and scipy. Instead, one should use java numerical libraries as recommended by Albert Cardona.
Double clicking test.py will open the file in the editor window. COpy and paste the following:
from ij import IJ import ij.process.ImageProcessor as IP blobs = IJ.openImage("http://rsb.info.nih.gov/ij/images/blobs.gif") imp = blobs.createImagePlus() ip = blobs.getProcessor().duplicate() imp.setProcessor("blobs copy", ip) imp.show() ip.setThreshold(147, 147, IP.NO_LUT_UPDATE) IJ.run(imp, "Convert to Mask", "") IJ.run(imp, "Watershed", "")
save the file, right click the file in Pydeve Package view and select [Run as > Jython Run]. If segmented blob appears, then the setup is working.
To dynamically access jython-ij, set external library path in [window > preferences] interpreter-Jyton pane. Adding ij.jar in the library path will enable you to access jython just like in IDLE by clicking open console icon and selecting pydev console.