python - Cannot run pip from terminal on mac server -
i running mini mac server. running osx 10.10.3 , running python 2.7.9. trying install packages (namely selenium) using pip, cannot. if type:
which pip
it nothing. if try install pip,
sudo python get-pip.py
i get:
requirement up-to-date: pip in /system/library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages
i can see pip in 2.7 site-packages when try like:
sudo pip install -u selenium
i -bash: pip: command not found
how can remedy this?
the pip command simple script. literally this:
#!<path python using> # -*- coding: utf-8 -*- import re import sys pip import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
the first line, should path python using, output of which python
. don't know why don't have pip in $path, see 2 ways resolve this, either find pip executable, , add it's location $path, or put above script in 1 of directories in $path, , make executable (chmod u+x .../pip
)
Comments
Post a Comment