Skip to content
Advertisement

Installing Hiredis with pip on windows machine

I´ve been trying to install Hiredis in my virtual environment. I developing in windows 7.

At first i got the vcvarsall.bat error (or something like that). I read a lot of blogs and suggestions to this problem but i found no suitable answer. I tried “Windows GCC (MinGW) binaries for Python developers”, I installed the Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1 (ISO), etc. I suppose that the problem is because this packages contains C code.

My question is, after dealing with all this for over a week, does anyone have another useful idea on how to install Hiredis OR how to deal with the vcvarsall.bat error?

The help will be really appreciated. Thanks

Advertisement

Answer

There is no proper (no officially supported) way to make this run under Windows. Even ActiveState Python does not offer a working hiredis package: https://code.activestate.com/pypm/hiredis/

For me the most important question is: why would you want to run hiredis under Windows? Developing a Redis client without using hiredis is just fine under Windows.

Do you plan using Windows Redis clients in production? Do you already know that their performance will not be good enough? If you can answer both of these questions with a clear “YES”, then you need to proceed working on getting a proper hiredis build for Windows. If you are not so sure about either question, then this is premature optimization. Just work with the default parser.

Advertisement