title: ModuleNotFoundError: No module named 'cookiecutter.main'; 'cookiecutter' is not a package
body: <p>I am trying to use the python to create a project from a cookiecutter. I've installed cookiecutter globally (I am not using a virtual environment) on Windows with pip</p>
  
  <pre><code>pip3 install cookiecutter
  </code></pre>
  
  <p>I am able to use cookiecutter as a command in GitBash. However, when I try to use it within a python script (based on <a href="https://cookiecutter.readthedocs.io/en/0.9.1/advanced_usage.html" rel="nofollow noreferrer">these</a> instructions), I get:</p>
  
  <pre><code>ModuleNotFoundError: No module named 'cookiecutter.main'; 'cookiecutter' is not a package
  </code></pre>
  
  <p>Here is the script file:</p>
  
  <pre><code>from cookiecutter.main import cookiecutter
  
  cookiecutter(
      '&lt;redacted&gt;',
      no_input=True,
      extra_context={
        'directory_name': 'bar',
        'file_name': 'baz',
        'greeting_recipient': 'inga'
      }
  )
  </code></pre>
  
  <p>What am I missing here?</p>
  
  <p>[edit]
  I've also tried this using the Windows standard command prompt, and also in Linux, with virtualenv. The result is always the same.
  [/edit]</p>