Forums

ImportError: No module named 'django_select2'

I am try to deploy my app on pythonanywhere. When i load my app it gives me No module named 'django_select2'. However i installed this select2 package by using pip.

pip install django_select2

I also checked if django_select2 is installed or not by using this below command.

pip freeze --local
Django==2.0.7   
django-appconf==1.0.2  
django-select2==6.1.0
furl==1.2  
orderedmultidict==1.0  
Pillow==5.2.0   
python-memcached==1.59    
pytz==2018.5  
PyYAML==3.13   
reportlab==3.5.0   
six==1.11.0   
xlwt==1.3.0

As you see django select2 package is in the installed list.

Is your web app using the same version of Python / virtualenv where the package is installed?

yes versions are same.

So you're using Python 2.7 for your web app?