title: easy_install not working : Getting error [Errno -2] Name or service not known -- Some packages may not be found
body: <p>I am trying to install on my Ubuntu 14.04 machine mercurial using easy_install. I type this command to install as root user : </p>
  
  <pre><code>sudo easy_install mercurial
  </code></pre>
  
  <p>And on the terminal i get this error message : </p>
  
  <pre><code>Searching for mercurial
  Reading https://pypi.python.org/simple/mercurial/
  Download error on https://pypi.python.org/simple/mercurial/: [Errno -2] Name or service not known -- Some packages may not be found!
  Couldn't find index page for 'mercurial' (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 -2] Name or service not known -- Some packages may not be found!
  No local packages or download links found for mercurial
  error: Could not find suitable distribution for Requirement.parse('mercurial')
  </code></pre>
  
  <p>Can anybody help me out why its not working?  </p>
  
  <p>PS. I am running this behind proxy, and i have all the necessay env variable set. When i run <code>env</code> command i have </p>
  
  <pre><code>HTTP_PROXY=http://username:password@172.31.102.14:3128
  HTTPS_PROXY=https://username:password@172.31.102.14:3128
  </code></pre>
  
  <p>as my proxy set.  </p>