[Django]-Django giving error ImportError: No module named 'corsheaders'

14👍

Originally I did pip3 install django-cors-headers, instead by fluke I tried pip install django-cors-headers and voila it worked.

Hope it helps somebody

0👍

I think you suppose to type the following command

pip3 install django-cors-headers

Hope this can help

0👍

I had a similar issue. In my case, Pip was installing Packages Into global environment While VirtualEnv was Activated. So following command worked for me-

<path-to-your-env>/bin/pip3 install -r requirements.txt

-1👍

Same thing happened to me. I just forgot to run:

pipenv shell

Leave a comment