Spacy on AppEngine标准 [英] Spacy on AppEngine standard
问题描述
我正在尝试在新的AppEngine Standard Python 3.7运行时上使用Spacy.
当我尝试部署时,我得到:
错误:(gcloud.app.deploy)无法上传文件 [/my/project/path/venv/lib/python3.7/site-packages/spacy/lang/tr/lemmatizer.py], 大小为[41523943](大于允许的最大大小 [33554432]).请删除文件或将其添加到以下位置的skip_files条目中 您的应用程序.yaml文件,然后重试.
一些奇怪之处:</p>
- 文档似乎表明我不需要上传虚拟环境,它将从requirements.txt中创建
- 在查看日志文件时,似乎忽略了.pyc文件,但没有忽略venv目录
- 该错误消息提示
add to the skip_files in your application .yaml file and try again.
,但文档称python3.7运行时不使用跳过文件,也不使用解决方案
要解决此问题,我需要更新gcloud并重新进行身份验证:
gcloud components update
gcloud auth login
I'm trying to use Spacy on the new AppEngine Standard Python 3.7 runtime.
When I try to deploy I get:
ERROR: (gcloud.app.deploy) Cannot upload file [/my/project/path/venv/lib/python3.7/site-packages/spacy/lang/tr/lemmatizer.py], which has size [41523943] (greater than maximum allowed size of [33554432]). Please delete the file or add to the skip_files entry in your application .yaml file and try again.
A few oddities:
- The docs seem to indicate that I don't need to upload the virtual environment and it will be created from requirements.txt
- Looking at the log file, it seems to ignore .pyc files, but not the venv directory
- The error message says to
add to the skip_files in your application .yaml file and try again.
, but the docs say the python3.7 runtime doesn't use skip files and to use a .gcloudignore file instead, but addingvenv/
orvenv/*
doesn't work (it appears to be ignored)
To fix this, I needed up update gcloud and reauthenticate:
gcloud components update
gcloud auth login
这篇关于Spacy on AppEngine标准的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!