I've installed python using homebrew and I can't invoke pip from the bash. I've tried amending my .bash_profile to include /usr/local/bin/python and /usr local/share/python to no avail.
When I use the bash command:
find / -name 'pip'
The only results I get are:
/Library/Python/2.7/site-packages/pip-1.5.6-py2.7.egg/pip
/Users/Ivan/Library/Caches/pip
/Users/Ivan/Library/Logs/pip
/usr/local/Cellar/python/2.7.9/libexec/pip
/usr/local/Cellar/python/2.7.9/libexec/pip/pip
/usr/local/lib/python2.7/site-packages/pip
None of which are an executable.
I don't really know where to point my $PATH as I can't find the pip executable. When I open
/usr/local/lib/python2.7/site-packages/pip
or
/usr/local/Cellar/python/2.7.9/libexec/pip/pip
I find the following files:
__init__.py commands operations
__init__.pyc compat pep425tags.py
__main__.py download.py pep425tags.pyc
__main__.pyc download.pyc req
_vendor exceptions.py status_codes.py
basecommand.py exceptions.pyc status_codes.pyc
basecommand.pyc index.py utils
baseparser.py index.pyc vcs
baseparser.pyc locations.py wheel.py
cmdoptions.py locations.pyc wheel.pyc
cmdoptions.pyc models
None of which are an executable.
I would appreciate the help of anyone with more experience than me.
Edit: I tried the steps suggested by Marco:
Here are the results to the steps:
echo $PATH shows a few directories: /usr/local/bin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/opt/X11/bin:/usr/local/mysql/bin
which -a python returns: /usr/local/bin/python /usr/local/bin/python
nothing is returned for which -a pip
- which python returns: /usr/local/bin/python
nothing is returned for which pip
- ls -l $(which python) returns a single directory: lrwxr-xr-x 1 Ivan admin 33 17 May 08:59 /usr/local/bin/python -> ../Cellar/python/2.7.9/bin/python
ls -l $(which pip) returns several, including the python files that I showed in my original post