title: How do I install pip on ubuntu 14.04 LTS? I got this error while installing
body: <p>I tried with this command:</p>
  
  <pre><code>kv@kv:~$ sudo easy_install pip
  </code></pre>
  
  <p>I'm getting this error:</p>
  
  <pre><code>Searching for pip
  Reading https://pypi.python.org/simple/pip/
  Download error on https://pypi.python.org/simple/pip/: [Errno 111] Connection refused -- Some packages may not be found!
  Couldn't find index page for 'pip' (maybe misspelled?)
  Scanning index of all packages (this may take a while)
  Reading https://pypi.python.org/simple/
  Download error on https://pypi.python.org/simple/: [Errno 111] Connection refused -- Some packages may not be found!
  No local packages or download links found for pip
  error: Could not find suitable distribution for Requirement.parse('pip')
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>The directory '/home/kv/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
  The directory '/home/kv/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
  Collecting pip
    Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('&lt;pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f128ae75a10&gt;: Failed to establish a new connection: [Errno 111] Connection refused',)': /simple/pip/
    Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('&lt;pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f128ae75b90&gt;: Failed to establish a new connection: [Errno 111] Connection refused',)': /simple/pip/
    Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('&lt;pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f128ae75ed0&gt;: Failed to establish a new connection: [Errno 111] Connection refused',)': /simple/pip/
    Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('&lt;pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f128ae75190&gt;: Failed to establish a new connection: [Errno 111] Connection refused',)': /simple/pip/
    Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('&lt;pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f128ae754d0&gt;: Failed to establish a new connection: [Errno 111] Connection refused',)': /simple/pip/
    Could not find a version that satisfies the requirement pip (from versions: )
  No matching distribution found for pip
  </code></pre>
  
  <p>ERROR2</p>
  
  <pre><code>kv@kv:~$ sudo pip install --upgrade pip
  
  Traceback (most recent call last):
    File "/usr/local/bin/pip", line 5, in &lt;module&gt;
      from pkg_resources import load_entry_point
    File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2749, in &lt;module&gt;
          working_set = WorkingSet._build_master()
        File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 446, in _build_master
          return cls._build_from_requirements(__requires__)
        File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 459, in _build_from_requirements
          dists = ws.resolve(reqs, Environment())
        File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 628, in resolve
          raise DistributionNotFound(req)
      pkg_resources.DistributionNotFound: pip==1.0
  </code></pre>