Search code examples
pythondjangocookiecutter-djangocookiecutter

cookiecutter error in django


I installed a cookie cutter using pip.

Then I ran this $ cookiecutter

But this doesn't work.

This is the traceback:

 Traceback (most recent call last):
 File "/home/choco/.local/bin/cookiecutter", line 7, in
 from cookiecutter.main import main
 ModuleNotFoundError: No module named 'cookiecutter'

Solution

  • The problem can be solved by using the following steps:

    • Move to the folder where the virtual environment is installed

    • started the virtual environment (Activate it)

    • Install the cookiecutter using Pip

    The problem is installing the module outside the virtualenv.