AppEngine 标准上的 Spacy
Spacy on AppEngine standard
我正在尝试在新的 AppEngine 标准 Python 3.7 运行时上使用 Spacy。
当我尝试部署时,我得到:
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.
一些奇怪的地方:
- 文档似乎表明我不需要上传虚拟环境,它将从 requirements.txt
创建
- 看日志文件,好像忽略了.pyc文件,但没有忽略venv目录
- 错误消息显示
add to the skip_files in your application .yaml file and try again.
,但文档说 python3.7 运行时不使用跳过文件而是使用 .gcloudignore file,而是添加 venv/
或 venv/*
不起作用(似乎被忽略)
要解决此问题,我需要更新 gcloud 并重新进行身份验证:
gcloud components update
gcloud auth login
我正在尝试在新的 AppEngine 标准 Python 3.7 运行时上使用 Spacy。
当我尝试部署时,我得到:
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.
一些奇怪的地方:
- 文档似乎表明我不需要上传虚拟环境,它将从 requirements.txt 创建
- 看日志文件,好像忽略了.pyc文件,但没有忽略venv目录
- 错误消息显示
add to the skip_files in your application .yaml file and try again.
,但文档说 python3.7 运行时不使用跳过文件而是使用 .gcloudignore file,而是添加venv/
或venv/*
不起作用(似乎被忽略)
要解决此问题,我需要更新 gcloud 并重新进行身份验证:
gcloud components update
gcloud auth login