Python 弃用警告:从';使用或导入ABC;收藏';而不是fr-om';收藏。abc';已弃用,在3.8中它将停止工作

Python 弃用警告:从';使用或导入ABC;收藏';而不是fr-om';收藏。abc';已弃用,在3.8中它将停止工作,python,collections,manage.py,django-manage.py,Python,Collections,Manage.py,Django Manage.py,我从github下载了一段代码,并试图通过在git bash中运行命令来运行它:python manage.py runserver 但我遇到了这个错误: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working 已按照此答案中的建议对manage.py文件进

我从github下载了一段代码,并试图通过在git bash中运行命令来运行它:
python manage.py runserver

但我遇到了这个错误:

DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
已按照此答案中的建议对manage.py文件进行了更改 但仍然面临着同样的错误

import os
import sys

try:
    from collections.abc import Callable
except ImportError:
    from collections import Callable

if __name__ == "__main__":
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "app.settings")
    try:
        from django.core.management import execute_from_command_line
    except ImportError as exc:
        raise ImportError(
            "Couldn't import Django. Are you sure it's installed and "
            "available on your PYTHONPATH environment variable? Did you "
            "forget to activate a virtual environment?"
        ) from exc
execute_from_command_line(sys.argv)