error: Unable to find vcvarsall.bat

I’m trying to install dulwich for bzr-git.
now, I use Python 2.6 based bazaar.
(I use msys.)

My steps are as follows:

$ bzr branch lp:dulwich
$ cd dulwich/
$ python install
running install
running build
running build_py
creating build


creating build\lib.win32-2.6\dulwich\tests
running build_ext
building 'dulwich._objects' extension
error: Unable to find vcvarsall.bat

If you know any hints, tell me please.

For Windows installations:

While running for package installations Python 2.7 searches for an installed Visual Studio 2008. You can trick Python to use a newer Visual Studio by setting the correct path in VS90COMNTOOLS environment variable before calling

If you have Visual Studio 2010 installed, execute


or with Visual Studio 2012 installed