views:

639

answers:

1

hello all,

I am working on Vista, and using Python 2.6.4. I am using a software which uses a Python script. but then I bumped into the message:

cannot find vcvarsall.bat

So I installed visual c++ 2010. Still the file is not found though it is there. My guess (a very uneducated one...) is that somewhere the path is wrong, because I also have an old visual 2008 (pretty empty) folder. Since I have little idea in programming I have no idea where to make the changes for the new path. Do I change something in the registery or in the script. I would be happy if somebody could help (preferably in layman terms).

thanx. Ariel

+1  A: 

Installing Visual C++ is a good first step, though I couldn't say for sure whether the 2010 version will work. Anyway give it a try.

Look for vcvarsall.bat in the Visual C++ installation directory—I trust you can find it. Then add that directory to the system path. If you're doing this on the command line, you can try:

path %path%;c:\path\to\vs2010\bin

then try again to run whatever you were trying to run.

For more permanent effect, add it in the computer system path settings.

Craig McQueen
Hey,Thanks for the input. What actually worked was to remove the 2010 version and install the 2008 version. changing the path did not work.thanks again
Ariel
Good to hear you've got it working. I'm sure in future, the gurus will explain how to compile Python and its modules with VS 2010.
Craig McQueen
Python 2.6, 2.7, 3.0, 3.1 will always require VS2008, because this contains the correct version of the C runtime that they were linked to. If you try to link the python DLLs to the C runtime that comes with VS2010, it will not work.
Tartley