Python 2.7 : LookupError: unknown encoding: cp65001 : <p>I have installed python 2(64 bit), on windows 8.1 (64 bit) and wanted to know pip version and for that I fired <code>pip --version</code> but it is giving error.</p>

<pre><code>    C:\Users\ADMIN&gt;pip --version
Traceback (most recent call last):
  File "c:\dev\python27\lib\runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "c:\dev\python27\lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "C:\dev\Python27\Scripts\pip.exe\__main__.py", line 5, in &lt;module&gt;
  File "c:\dev\python27\lib\site-packages\pip\__init__.py", line 15, in &lt;module&gt;
    from pip.vcs import git, mercurial, subversion, bazaar  # noqa
  File "c:\dev\python27\lib\site-packages\pip\vcs\mercurial.py", line 10, in &lt;module&gt;
    from pip.download import path_to_url
  File "c:\dev\python27\lib\site-packages\pip\download.py", line 35, in &lt;module&gt;
    from pip.utils.ui import DownloadProgressBar, DownloadProgressSpinner
  File "c:\dev\python27\lib\site-packages\pip\utils\ui.py", line 51, in &lt;module&gt;
    _BaseBar = _select_progress_class(IncrementalBar, Bar)
  File "c:\dev\python27\lib\site-packages\pip\utils\ui.py", line 44, in _select_progress_class
    six.text_type().join(characters).encode(encoding)
LookupError: unknown encoding: cp65001
</code></pre>

<p>Note : The same command works fine for python 3. I have uninstalled both and installed again but still no success.</p>
