我的aws-s3存储桶中有一个docx文件。我需要使用python-docx进行阅读。我写这个:
from docx import Document
document = Document('https://my-first-backup-bucket-v1.s3-ap-southeast-1.amazonaws.com/New+Proposed+Quote.docx')
然后出现错误。PackageNotFoundError:在[https://my-first-backup-bucket-v1.s3-ap-southeast-1.amazonaws.com/New+Proposed+Quote.docx']中找不到包
为什么?
当我尝试从浏览器访问同一文件时,它已成功打开。出于测试目的,我使用公共访问权限创建了此文件,任何人都可以对此进行测试,任何人都可以对此提供帮助吗?
我的aws-s3存储桶中有一个docx文件。我需要使用python-docx进行阅读。我是这样写的:从docx import文档document = Document('https://my-first-backup-bucket-v1.s3-ap-southeast-1.amazonaws ....