Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pycharm no module named redis

I installed python,Django and Redis. In Vim I use “import redis” is OK, when I use pycharm IDE to code, I write “import redis” , the pycharm tip “no module named redis”, why? what should I to do ?

like image 498
JavaFreshman Avatar asked Jul 03 '13 07:07

JavaFreshman


1 Answers

As per my understanding pycharm will say "No module named redis" if you haven't set up python interpreter in pycharm or in case there is no such module you are trying to use installed in the python interpreter you are currently using for pycharm.

To add python interpreter to pycharm go to File -> Settings -> Python interpreter

enter image description here

like image 187
Ansuman Bebarta Avatar answered Oct 09 '22 10:10

Ansuman Bebarta