Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ModuleNotFoundError: No module named 'import_export'

I've used the following tutorial. I used the command pip install django-import-export, then added to the Installed Apps section.

    INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'import_export',
    'frontend',
    'userauth',
    'methods',
]

When I run python manage.py collectstatic I get error ModuleNotFoundError: No module named 'import_export'

like image 624
Bharath Pabba Avatar asked Sep 06 '17 09:09

Bharath Pabba


2 Answers

Install the import_export module by writing this command in command prompt

pip install --user django-import_export or use pip install django-import_export

like image 61
Muhammad Abbas Avatar answered Sep 18 '22 06:09

Muhammad Abbas


I guess you used virtual environment to develop some parts of your project (maybe accidentally) and then you switched it off.
Try to reinstall the modules with your virtual environment activated.

like image 43
Tms91 Avatar answered Sep 20 '22 06:09

Tms91