title: Getting error while installing any package in python : HTTPError: 404 Client Error: Not Found for url
body: <p>I am installing Flask on my ubuntu system, but unable to install it. Getting the following error:</p>
  
  <pre>Exception:
  Traceback (most recent call last):
    File &quot;/usr/lib/python2.7/dist-packages/pip/basecommand.py&quot;, line 215, in main
      status = self.run(options, args)
    File &quot;/usr/lib/python2.7/dist-packages/pip/commands/install.py&quot;, line 353, in run
      wb.build(autobuilding=True)
    File &quot;/usr/lib/python2.7/dist-packages/pip/wheel.py&quot;, line 749, in build
      self.requirement_set.prepare_files(self.finder)
    File &quot;/usr/lib/python2.7/dist-packages/pip/req/req_set.py&quot;, line 380, in prepare_files
      ignore_dependencies=self.ignore_dependencies))
    File &quot;/usr/lib/python2.7/dist-packages/pip/req/req_set.py&quot;, line 554, in _prepare_file
      require_hashes
    File &quot;/usr/lib/python2.7/dist-packages/pip/req/req_install.py&quot;, line 278, in populate_link
      self.link = finder.find_requirement(self, upgrade)
    File &quot;/usr/lib/python2.7/dist-packages/pip/index.py&quot;, line 465, in find_requirement
      all_candidates = self.find_all_candidates(req.name)
    File &quot;/usr/lib/python2.7/dist-packages/pip/index.py&quot;, line 423, in find_all_candidates
      for page in self._get_pages(url_locations, project_name):
    File &quot;/usr/lib/python2.7/dist-packages/pip/index.py&quot;, line 568, in _get_pages
      page = self._get_page(location)
    File &quot;/usr/lib/python2.7/dist-packages/pip/index.py&quot;, line 683, in _get_page
      return HTMLPage.get_page(link, session=self.session)
    File &quot;/usr/lib/python2.7/dist-packages/pip/index.py&quot;, line 795, in get_page
      resp.raise_for_status()
    File &quot;/usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/models.py&quot;, line 935, in raise_for_status
      raise HTTPError(http_error_msg, response=self)
  HTTPError: 404 Client Error: Not Found for url: https://pypi.org/simple/flask/
  </pre>
  
  <p>I tried some solution from <strong>Stackoverflow</strong> but nothing works for me</p>
  
  <p><a href="https://stackoverflow.com/questions/48109956/unable-to-install-any-package-through-pip/48110633">Unable to install any package through pip</a></p>
  
  <p>I'm using <code>ubuntu 18.04</code>, <code>Python 2.7</code>, <code>pip 9.0.1</code> </p>