error found while installing cython on windows.

254 views
Skip to first unread message

Pedro Marcal

unread,
Dec 4, 2011, 5:56:18 PM12/4/11
to Cython Users
Hi ,
Found the following problem,
Downloaded Cython-0.1.5.1.zip and installed on Windows 7 on Python26.
Got the following sequence during setup.py install
building 'Cython.Plex.Scanners' extension
error : Unable to find vcvarsall.bat
Thanks for any help.
Pedro

mark florisson

unread,
Dec 5, 2011, 5:56:15 AM12/5/11
to cython...@googlegroups.com

I'm not a windows user, but do you have a C compiler installed (e.g. MSVC)?

Pedro Marcal

unread,
Dec 5, 2011, 11:29:10 AM12/5/11
to cython...@googlegroups.com
Hi mark,
 I did not but I do now and  am getting the same result.
I suspect that I need more information than a plain 
' python setup.py install'
I need to tell it what compiler to use ?
Pedro

mark florisson

unread,
Dec 5, 2011, 12:27:35 PM12/5/11
to cython...@googlegroups.com
I believe distutils will try MSVC by default. If you have that
installed, you should confirm that it's in your path so distutils can
find it.

Pedro Marcal

unread,
Dec 5, 2011, 4:11:10 PM12/5/11
to cython...@googlegroups.com
Hi Mark,
I had paths both to my MSVC 10 and then to MSVC Express (because Cython had to be compatible with Python26).
Both compilers are on paths in the environmental variables. Yet it does not work on all two of my machines.
Can you please point me to how to dig deeper into install and disutil? 
Thanks
Pedro

mark florisson

unread,
Dec 5, 2011, 4:26:18 PM12/5/11
to cython...@googlegroups.com
As mentioned, I don't use windows as I've always found it a terrible
platform for development (as well as most other things). This link
http://www.gossamer-threads.com/lists/python/bugs/751115 mentions that
you will need MSVC 2008, so I think you will want to remove version 10
from your path. There's also this link
http://stackoverflow.com/questions/2817869/error-unable-to-find-vcvarsall-bat
which explains how to use mingw instead.

Good luck!

Chris.Barker

unread,
Dec 6, 2011, 4:24:18 PM12/6/11
to cython...@googlegroups.com
On 12/5/11 1:26 PM, mark florisson wrote:
> As mentioned, I don't use windows as I've always found it a terrible
> platform for development (as well as most other things). This link
> http://www.gossamer-threads.com/lists/python/bugs/751115 mentions that
> you will need MSVC 2008, so I think you will want to remove version 10
> from your path.

FWIW, I've never had trouble with Python2.6 and 2.7, if I install VS2008
Express -- I haven't had to do anything else.

MS does make it tricky to find an older VSExpress, but if you poke
around, hopefully, you can find it.

-Chris


--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris....@noaa.gov

Reply all
Reply to author
Forward
0 new messages