如何正确地将requirements.txt文件灵活地放入Google App Engine?

时间:2016-11-01 07:09:06

标签: python google-app-engine tensorflow requirements.txt

我尝试通过PyCharm部署应用。 我的应用程序使用TensorFlow lib for python并导入它。 我在同一个文件夹中创建了requirements.txt,其中存储了yamlpy。 requirements.txt的内容只是一个链接:

https://storage.googleapis.com/tensorflow/linux/cpu/tensorfl‌​ow-0.11.0rc1-cp27-no‌​ne-linux_x86_64.whl

vm:true中设置了yaml

部署此项目后,我在appspot访问我的应用程序并查看错误列表时获得ImportError: No module named tensorflow

链接正确,适用于bash:

Metafalica@DESKTOP-MC1D431:~$ pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorfl‌​ow-0.11.0rc1-cp27-no‌​ne-linux_x86_64.whl
Downloading/unpacking https://storage.googleapis.com/tensorflow/linux/cpu/tensorfl‌​ow-0.11.0rc1-cp27-no‌​ne-linux_x86_64.whl
Downloading tensorflow-0.11.0rc1-cp27-none-linux_x86_64.whl (39.8MB): 97% 39.0MB
...

为什么VM没有安装TensorFlow?也许我需要通过一些命令手动做什么或什么?也许我需要在PyCharm中设置一些选项?我对这一切都很陌生。

0 个答案:

没有答案