If you already have Python 2.6 or 2.7 installed, you’re fine. If not, you’ll want to download
the latest version of Python 2.7, because that’s the most recent version of Python
that has support for the Redis library. Go to http://www.python.org/download/ and
select the most recent version of the 2.7 series that’s available for Windows in either
the 32- or 64-bit version (again, depending on your platform). When Python is done
downloading, you can install it by double-clicking on the downloaded .msi file.
Assuming that you accepted all of the default options for installing Python 2.7,
Python should be installed in C:Python27. From here, you only need to install the
Python Redis library to be ready to use Redis with Python. If you’re using Python 2.6,
any time the book refers to Python27, you can instead use Python26.
To help you to install the Redis client library, you’ll use the easy_install utility
from the setuptools package. This is because you can easily download setuptools
from the command line. To get started, open a command prompt by going into the
Accessories program group in the Start menu and clicking on Command Prompt.
After you have a command prompt open, follow along with the next listing; it shows
how to download and install setuptools and the Redis client library.
Now that you have Python and the Redis client library installed, you should continue
with section A.4 to use Redis from Python for the first time.
TRY REDIS ENTERPRISE CLOUD FREE
Redis Enterprise Cloud provides complete automation of day-to-day database operations. Start now with 30MB of free storage.
Click on the link we sent you to activate your account and complete your signup process