Ansuman tip gave me part of the way, but import redis was still blushing. I had the interpreter selected, but it turned out that I did not have pip installed and I did not have the redis package redis .
To get them, go to File > Settings > Python Interpreter (or PyCharm > Preferences > Python Interpreter on Mac) and select Configure Interpreters . Below it is suggested to install pip (sorry, not a screenshot). Do this. After installing pip install the redis module by selecting Install .
In the new window, find redis . Select redis (you may have to scroll down, it didnβt appear to me), then select Install Package .

Obviously this should work for all packages, not just redis .
source share