【发布时间】:2019-03-26 03:26:30
【问题描述】:
这个周末我做了一个 Flask 应用程序,它使用了很多 ML 包,比如 Pytorch。模型都是构建好的,所以我们不需要像谷歌计算引擎这样疯狂的东西。但是,我仍然需要安装这些库。但是,其中许多像 Pytorch 不支持 pip。我在尝试部署时遇到此类错误。
ERROR: (gcloud.app.deploy) Error Response: [9] Cloud build 729275d4-8baa-480d-bc31-6e1fca2ccf2a status: FAILURE.
Build error details: {"message": "`pip_download_wheels` had stderr output:\n Could not find a version that satisfies the requirement mkl-fft (from -r /dev/stdin (line 18)) (from versions: )\nNo matching distribution found for mkl-fft (from -r /dev/stdin (line 18))\n\nerror: `pip_download_wheels` returned code: 1", "code": 1, "type": "USER_ERROR"}.
Check the build log for errors: https://console.cloud.google.com/gcr/builds/729275d4-8baa-480d-bc31-6e1fca2ccf2a?project=392093192495.
有没有办法使用 Anaconda 而不是 requirements.txt 文件在 Google App Engine 上安装这些?
Here 是这个项目,如果有人好奇的话。如果这不可能,是否有任何其他托管服务可以使这变得容易(并且有某种免费等级)?
【问题讨论】:
标签: python google-app-engine google-cloud-platform google-app-engine-python