Skip to content Skip to sidebar Skip to footer

Modulenotfounderror : No Module Named : Crispy_forms

I can import crispy_forms but when I run python3 manage.py runserver it say no module named crispy_forms, I can not why it is, because when I pip3 list, I can see django-crispy-f

Solution 1:

I had the same error. I had to put "crispy_forms" in double-quotes as @erdin-eray said, and then try to re-import with pip install django-crispy-forms. This solved it for me.

It turns out the first time I did a pip install ... I was not in my (env) virtual environment!

pip freeze > requirements.txt:

asgiref==3.3.1Django==3.1.3django-crispy-forms==1.10.0pkg-resources==0.0.0pytz==2020.4sqlparse==0.4.1

Solution 2:

If you are using pipenv and creating virtual environments for your projects, you might need to be in your virtual environment's shell. Try using

python3 -m pipenv shell

to start a shell of your virtual environment. You can check to make sure that django-crispy-forms are installed by using the

pip list

command. If you see the desired version of django-crispy-forms installed on this list, then try running the server again using the same command you were using initially:

python3 manage.py runserver

Solution 3:

pip install django-crispy-forms

Solution 4:

pip install django-crispy-forms not works for this error. You need to use python command instead python3 for run server.

Post a Comment for "Modulenotfounderror : No Module Named : Crispy_forms"