title: Error while installing pip using get-pip.py with Python2.7.10
body: <p>I am using Python2.7.10 on a Windows10 machine, and wish to install pip.</p>
  
  <p>I followed the instructions from <a href="https://pip.pypa.io/en/stable/installing/" rel="nofollow noreferrer">here</a> to get the get-pip.py file, but when I try to run it I get the following error:</p>
  
  <blockquote>
    <p>Could not install packages due to an EnvironmentError: [Errno 42] Illegal byte sequence</p>
  </blockquote>
  
  <p>I found that if I install an older version of pip (for Python2.6) then the installation is successful, and I can use pip regularly. If I try to use this older version (9.0.3) to install the newer one (18.0) then I get the same error message.</p>
  
  <p>The complete log of the installation is below (1). If I manually install setuptools then I get the same message when it tries to download the next package:</p>
  
  <p>Any assistance with installing the newer version will be much appreciated :-)</p>
  
  <p>1)</p>
  
  <pre><code>C:\Python27\Lib\site-packages&gt;python get-pip.py
  Collecting pip
    Using cached https://files.pythonhosted.org/packages/5f/25/e52d3f31441505a5f3af41213346e5b6c221c9e086a166f3703d2ddaf940/pip-18.0-py2.py3-none-any.whl
  Collecting setuptools
    Downloading https://files.pythonhosted.org/packages/ff/f4/385715ccc461885f3cedf57a41ae3c12b5fec3f35cce4c8706b1a112a133/setuptools-40.0.0-py2.py3-none-any.whl (567kB)
      1% |Could not install packages due to an EnvironmentError: [Errno 42] Illegal byte sequence
  </code></pre>
  
  <p><strong>Update:</strong> after installing several packages manually I was able to install the new pip version. It obviously didn't solve the problem, and pip is still not working. When trying to use it, the same error message appears at every attempted download. See log at (2). I double checked the address, and it appears to be correct.</p>
  
  <p>2)</p>
  
  <pre><code>Collecting Requests
    Downloading https://files.pythonhosted.org/packages/65/47/7e02164a2a3db50ed6d8a6ab1d6d60b69c4c3fdf57a284257925dfc12bda/requests-2.19.1-py2.py3-none-any.whl (91kB)
      11% |Could not install packages due to an EnvironmentError: [Errno 42] Illegal byte sequence
  </code></pre>
  
  <p>Thanks</p>