I installed pika for python running on a mac
sudo pip install pika==0.9.8
I make sure is installed, this is the response when trying to reinstall,
Requirement already satisfied (use --upgrade to upgrade): pika==0.9.8 in /usr/local/lib/python2.7/site-packages
but when i import pika on a *.py I get,
ImportError: No module named pika
my python version
python --version
Python 2.7.5
how to make this module recognised by Python? thanks!
edit 1
I call the import like this
import pika
which gives the error, I can fix this temporaritly with,
export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/site-packages
So how to make the path permanent? thanks!
Download and run pip from here:
https://pip.pypa.io/en/latest/installing.html
and then open command window and goto the Scripts folder of the installed python in C and type the following command:
C:\Python34\Scripts>pip install pika