title: Python 3.4 and 2.7 installation no Script folder and no pip installed
body: <p>I was doing a fresh installation for <code>Python 2.7.9</code> and <code>3.4.3</code> on <code>Win7 X64</code> today, and I found that there is no <code>Script</code> folder in <code>Python27</code> and <code>Python34</code> folder as first child level folder, but there is one in <code>Tools</code>. However, I couldn't find <code>pip</code> within that Script folder, although <code>pip</code> should be installed with <code>Python</code> by default. The other I was doing the same installation for my other PC and laptop, there was <code>Script</code> folder (as first level child folder in <code>Python27</code> and <code>Python34</code>) containing <code>pip</code>. So what is going on? how to install <code>pip</code> and maybe other useful scripts this way?</p>
  
  <p>[EDIT] I tried <code>python -m ensurepip</code> in <code>Python34</code>. I got the following errors:</p>
  
  <pre><code>Ignoring indexes: https://pypi.python.org/simple
  Collecting setuptools
   Exception:
   Traceback (most recent call last):
  File "C:\Users\daiyue\AppData\Local\Temp\tmppvmc8dv1\pip-6.0.8-py2.py3-none-
  any.whl\pip\basecommand.py", line 232, in main
    status = self.run(options, args)
  File "C:\Users\daiyue\AppData\Local\Temp\tmppvmc8dv1\pip-6.0.8-py2.py3-none-
  any.whl\pip\commands\install.py", line 339, in run
    requirement_set.prepare_files(finder)
  File "C:\Users\daiyue\AppData\Local\Temp\tmppvmc8dv1\pip-6.0.8-py2.py3-none-
  any.whl\pip\req\req_set.py", line 333, in prepare_files
    upgrade=self.upgrade,
  File "C:\Users\daiyue\AppData\Local\Temp\tmppvmc8dv1\pip-6.0.8-py2.py3-none-
  any.whl\pip\index.py", line 326, in find_requirement
    file_locations, url_locations = self._sort_locations(locations)
  File "C:\Users\daiyue\AppData\Local\Temp\tmppvmc8dv1\pip-6.0.8-py2.py3-none-
  any.whl\pip\index.py", line 158, in _sort_locations
    sort_path(os.path.join(path, item))
  File "C:\Users\daiyue\AppData\Local\Temp\tmppvmc8dv1\pip-6.0.8-py2.py3-none-
  any.whl\pip\index.py", line 139, in sort_path
    if mimetypes.guess_type(url, strict=False)[0] == 'text/html':
  File "C:\Python34\lib\mimetypes.py", line 287, in guess_type
    init()
  File "C:\Python34\lib\mimetypes.py", line 348, in init
    db.read_windows_registry()
  File "C:\Python34\lib\mimetypes.py", line 255, in read_windows_registry
    with _winreg.OpenKey(hkcr, subkeyname) as subkey:
  TypeError: OpenKey() argument 2 must be str without null characters or None,  not str
  </code></pre>
  
  <p>[EDIT] The problem is due to multiple null Registry keys in <code>HKEY_LOCAL_MACHINE</code> that make <code>read_windows_registry()</code> in <code>mimetypes.py</code> searches failed. Here is the post that leads to the solution:</p>
  
  <p><a href="http://www.swarley.me.uk/blog/2014/04/23/python-pip-and-windows-registry-corruption/" rel="noreferrer">Python ‘pip’ and Windows registry corruption</a> </p>
  
  <p>thanks </p>