我en-core-web-sm在我的 Python AWS Lambda 中使用 SpaCy。我跑去pip freeze > requirements.txt获取requirements.txt文件中的所有依赖项。en-core-web-sm==2.1.0是文件中的行之一。
当我尝试进行无服务器部署时,我得到ERROR: Could not find a version that satisfies the requirement en-core-web-sm==2.1.0 (from versions: none) ERROR: No matching distribution found for en-core-web-sm==2.1.0.
即使我没有使用 Heroku,我也遵循Heroku Deployment Error: No matching distribution found for en-core-web-smhttps://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.1.0/en_core_web_sm-2.1.0.tar.gz#egg=en_core_web_sm==2.1.0并在我的文件中添加该行requirements.txt只是为了得到Unzipped size must be smaller than 262144000 bytes (Service: AWSLambdaInternal; Status Code: 400; Error Code: InvalidParameterValueException; Request ID: XxX-XxX)
如何连接en-web-core-sm到我的 Lambda?