title: How to overcome - pip install ansible on windows failing with filename or extension too long on windows
body: <p>how to fix the pip install failures on windows with below error. Getting this error while trying to install ansible.</p>
  
  <p>I suspect it is with issue with selected pip package for install. but the same is working fine with Linux based systems. Will there be any difference with OS for pip install</p>
  
  <pre><code>Exception:
  Traceback (most recent call last):
    File "c:\python27\lib\site-packages\pip\basecommand.py", line 215, in main
      status = self.run(options, args)
    File "c:\python27\lib\site-packages\pip\commands\install.py", line 324, in run
      requirement_set.prepare_files(finder)
    File "c:\python27\lib\site-packages\pip\req\req_set.py", line 380, in prepare_files
      ignore_dependencies=self.ignore_dependencies))
    File "c:\python27\lib\site-packages\pip\req\req_set.py", line 620, in _prepare_file
      session=self.session, hashes=hashes)
    File "c:\python27\lib\site-packages\pip\download.py", line 821, in unpack_url
      hashes=hashes
    File "c:\python27\lib\site-packages\pip\download.py", line 663, in unpack_http_url
      unpack_file(from_path, location, content_type, link)
    File "c:\python27\lib\site-packages\pip\utils\__init__.py", line 605, in unpack_file
      untar_file(filename, location)
    File "c:\python27\lib\site-packages\pip\utils\__init__.py", line 553, in untar_file
      ensure_dir(path)
    File "c:\python27\lib\site-packages\pip\utils\__init__.py", line 83, in ensure_dir
      os.makedirs(path)
    File "C:\Python27\Lib\os.py", line 157, in makedirs
      mkdir(name, mode)
  WindowsError: [Error 206] The filename or extension is too long: 'c:\\users\\user123\\appdata\\local\\temp\\pip-build-isnb2t\\ansible\\test/integration/targets/copy/files/subdir/subdir1/circles/subdir1/circles/subdir1/circles/subdir1/circles/subdir1/circles/subdir1/circles/subdir1/circles/subdir1/circles/subdir1/circles/subdir1/'
  </code></pre>