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?
Sometimes when you are installing packages, you might face the error: pip: command not found . This error could be due to the following reasons: Pip is not installed. Pip is installed, but it is not compatible with the current environment.
A “pip: command not found” error occurs when you fail to properly install the package installer for Python (pip) needed to run Python on your computer. To fix it, you will either need to re-install Python and check the box to add Python to your PATH or install pip on your command line.
This error usually means there's a problem with the Python installation or the system variable PATH is not set up correctly. Try reinstalling Python and all its components to fix the problem. The easiest way is via the Python executable installer.
You might have pip3 instead. Use it to upgrade pip.
pip3 install --upgrade pip
easy_install has been deprecated. Use below commands instead.
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
Source
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With