I have installed redis using sudo apt-get install redis-server
command but I am receiving this error when I run my Python program:
ImportError: No module named redis
Any idea what's going wrong or if I should install any other package as well? I am using Ubuntu 13.04 and I have Python 2.7.
I was facing the same issue and this is how I resolved it. Check if you use a virtualenv named dev then don't do
but just
This will install the redis package in your own virtualenv instead of your "complete" system, and this time your redis package will be found from your code.
To install redis-py, simply:
or alternatively (you really should be using pip though):
or from source:
Getting Started
Details:https://pypi.python.org/pypi/redis
I had the same issue, the error was that the default pip was 'pip3', and the redis package was installed under python3 packages.
This is not a redis specific issue, but if this is the case for you, try running: