我在Heroku上部署了一个Django==2.1.2和Python==3.6.5应用程序,我想用亚马逊S3管理媒体和静态文件。python/lib/python3.6/site-packages/storages/backends/s3boto3.py" in <module>
32.raise ImproperlyConfigured("Could not load Boto3'
我正在使用python脚本将文件上传到s3存储桶。switch to a different thread 当我调查的时候,我发现boto3和grequests包有奇怪的行为 当我在脚本中导入grequests和boto3时,它抛出了一个异常。但同样的,当我从我的代码中删除import grequests时,文件被上传到s3时没有任何问题。import sys, os, timeimport boto3, ntpath 我真的需要在我