problem installing psyco on windows (Unable to find vcvarsall.bat)

G

Gelonida N

Hi,

I'd like to install psyco on my windows host


I'm using python 2.6.4 (32 bit version)

I installed easy_intall and pip

easy_install psyco
and
pip install psyco fail both with the message
error: Setup script exited with error: Unable to find vcvarsall.bat


I read, that this means I shoul dinstall a C-compiler
I also read, that I should NOT Micrusoft Visual C++ Express 2010
(which is unfortunately exactly the version, which I installed for some
other activity.


So my question:

- If I install visual Studio 2008 addtiojnally to visualstudia 2010,
will easy_install find this compiler?
- I read about the alternative of using MingW instead of Visual Studio
Express 2008.

What could influence my choice of Compiler?

Thanks for any suggestions
 
G

Gelonida N

You can download the sources tarball and when building specify the compiler.
See http://docs.python.org/install/index.html#gnu-c-cygwin-mingw

Your answer put me on the right track.


This works:
- downloading mingw
- downloading and extracting the tarfile the tar file
- python setup.py build --compiler=mingw32
- python setup.py install


In order to directly use pip / easy_install

I created the file %USERPROFILE%\pydistutils.cfg
with following two contents:
[build]
compiler=mingw32


and added mingw to my search path.

now in can directly type
pip install psyco



Thanks again
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,149
Members
46,695
Latest member
StanleyDri

Latest Threads

Top