ImportError: No module named django_filters

后端 未结 5 1901
长情又很酷
长情又很酷 2020-12-16 09:34

I am using Django 1.7.1 and I pip installed django-filters to my virtual env at /.virtualenvs/auction2/lib/python2.7/site-packages$

It said it was insta

5条回答
  •  醉梦人生
    2020-12-16 10:27

    I also encountered this issue installing django-filter==2.2.0

    This was my Django version:

    Django [required: >=1.11, installed: 2.2]
    

    settings.py:

    INSTALLED_APPS = [
        # ...
        'django_filters',
    ]
    

    I mistakenly installed with:

    pipenv install django_filters
    

    This is the correct installation:

    pipenv install django-filter
    

    Hope it helps.

提交回复
热议问题