Installing dev6.0 on windows with enthought python

Christoph Gohlke cjgohlke at gmail.com
Mon Jun 11 17:53:16 EDT 2012


On 6/11/2012 12:32 PM, Dirk Colbry wrote:
> I am struggling compiling the development version of scikits-image in
> Windows with Enthought Python (version 27).  I need the latest version
> because our research team would like to try out the template matching
> examples.  I started by using easy_install but that just provides for
> me the latest stable version 0.5 (not surprising).  I then tried tried
> downloading the source as described on the website.
>
> git clone http://github.com/scikits-image/scikits-image.git
> cd scikits-image/
> python setup.py install
>
> The above worked fine on my Mac. However, when I tried the same
> command on a couple of different windows7 machines everything works
> until I run the python setup.py install command.  It looks like it is
> working but then it stops with the following:
>
> python setup.py install
> ...
> compile options: '-IC:\Python27\lib\site-packages\numpy\core\include -IC:\Python
> 27\lib\site-packages\numpy\core\include -IC:\Python27\include -IC:\Python27\PC -
> c'
> gcc -g -DDEBUG -DMS_WIN64 -O0 -Wall -Wstrict-prototypes -IC:\Python27\lib\site-p
> ackages\numpy\core\include -IC:\Python27\lib\site-packages\numpy\core\include -I
> C:\Python27\include -IC:\Python27\PC -c _spath.c -o build\temp.win-amd64-2.7\Rel
> ease\_spath.o
> Found executable C:\Python27\Scripts\gcc.exe
> gcc.exe: _spath.c: No such file or directory
> gcc.exe: no input files
> error: Command "gcc -g -DDEBUG -DMS_WIN64 -O0 -Wall -Wstrict-prototypes -IC:\Pyt
> hon27\lib\site-packages\numpy\core\include -IC:\Python27\lib\site-packages\numpy
> \core\include -IC:\Python27\include -IC:\Python27\PC -c _spath.c -o build\temp.w
> in-amd64-2.7\Release\_spath.o" failed with exit status 1
>
>
> I have the latest version of enthought python installed on all of the
> machines.  I did some searching for _spath.c and scikits-image. There
> where a few posts but I could not find anything related to version 6.0
> of scikits-image.  The following are a few links I found that looked
> promising:
>
> https://github.com/stefanv/scikits.image/issues/23
> http://blog.philippklaus.de/2011/08/handle-16bit-tiff-images-in-python/
>
> However, none of the links I found tell me what the problem is and how
> to fix it.  The first link above, seems to indicate that the problem
> is in Cython but I am not sure how to tell if Cython is working (and I
> am not convinced that this is the problem).  The person writing in on
> the second link seems to have a solution but I can't figure out what
> the solution is or how to reproduce it.  Anyone have any suggestions
> on what we can try?
>
> Thanks,
>
> - Dirk
>
>

EPD is missing a cython.py file in the Scripts folder. Try to manually 
copy the file from 
<https://github.com/cython/cython/blob/0.16/cython.py> to the 
C:\Python27\Scripts folder.

Christoph



More information about the scikit-image mailing list