I followed online instructions on how to install pip on macOS (for example this, this, and this).
I all seems to simple, but it's not working for me.
My python --version is 2.7.10.
When I run sudo easy_install pip I get:
$ sudo easy_install pip Password: Searching for pip Reading http://pypi.python.org/simple/pip/ Couldn't find index page for 'pip' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading http://pypi.python.org/simple/ No local packages or download links found for pip error: Could not find suitable distribution for Requirement.parse('pip') Any idea how I can fix or work around this?
sudoandpipin the same command seem like a bad idea on OSX. I'd rather keep the system-provided Python completely under the OS updater control, and would do any development and pip-based installation in avirtualenvand/or on a brew-installed Python.pip installinstead ofsudo pip install. When in doubt, use/usr/bin/pip. Better yet,brew install virtualenv, create a separate environment for each project, and install project-specific dependencies. This way projects never conflict with each other.