Value error trying to install Python for Windows extensions

Another possible reason for this problem to appear is that you have just installed Visual Studio and the command prompt you’re using had been hanging around from the time before the installation.

This is because MSVC installer sets few environment variables and one of these variables ( VS90COMNTOOLS )has to be set for vcvarsall.bat to execute correctly.
But each running program in Windows holds its own local copy of environment variables that gets inherited (copied) from parent process upon child start-up. Thus, after child has started, it does not receive alterations performed on the system-level envvars. And the only way of getting updated environment variables is trough spawning a new instance of a child process with parent that has updated version of envvars.

Leave a Comment