在 AWS EC2 服务器上部署 Django 代码时,出现以下错误。我多次卸载了 six 并删除了 cache 文件夹并安装了不同版本的 six 但都不起作用。我在过去的两天里一直面临这个问题,但仍然没有得到解决方案,请帮助我摆脱这个问题。
May 22 17:06:33 ip-172-31-7-56 gunicorn[73506]: from storages.backends.s3boto3 import S3Boto3Storage
May 22 17:06:33 ip-172-31-7-56 gunicorn[73506]: File "/home/ubuntu/lighthousemedia/.venv/lib/python3.12/site-packages/storages/backends/s3boto3.py", line 12>
May 22 17:06:33 ip-172-31-7-56 gunicorn[73506]: from django.utils.six.moves.urllib import parse as urlparse
May 22 17:06:33 ip-172-31-7-56 gunicorn[73506]: ModuleNotFoundError: No module named 'django.utils.six.moves'