This is just great. Python can be installed in several places on your computer. When you get a new Mac, the python directory by default may be
'usr/bin/python2.7'
You may also have a directory
'System/Library/Frameworks/Python.framework/Versions/2.7/bin/python'
The first is a symbolic link of the second.
If you use HomeBrew to install python, you can get the directory in
'usr/local/bin/python2.7'
You may also have a directory
'Library/Frameworks/Python.framework/Versions/2.7/bin/python'
where exactly is my directory.
The difference between the second and fourth, you can find here Installing your infrastructure
In your question, as you said, package installation completed successfully, but installed packages are still not available. I can guess that your pip directory is not in your python directory by default and the packages are installed where the pip directory is located. (Please use 'which pip' to check this)
For example, on my computer, the default peak directory
/Library/Frameworks/Python.framework/Versions/2.7/bin/pip
though, I also have pip in usr / local / bin.
So, all my packages installed through 'pip install' are stored in
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
I hope you resolve your doubts. Similar things happened to me, and it took me a whole night to understand.
Here is the solution: Use PYTHONPATH="/usr/local/lib/python2.7/site-packages:$PYTHONPATH" to change the python directory or change the pip directory. However, I would recommend a better way: virtualenv . This can isolate Python environments and can help you easily configure packages for each project.