我尝试通过PyCharm
部署应用。
我的应用程序使用TensorFlow
lib for python并导入它。
我在同一个文件夹中创建了requirements.txt
,其中存储了yaml
和py
。
requirements.txt的内容只是一个链接:
https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0rc1-cp27-none-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/tensorflow-0.11.0rc1-cp27-none-linux_x86_64.whl
Downloading/unpacking https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0rc1-cp27-none-linux_x86_64.whl
Downloading tensorflow-0.11.0rc1-cp27-none-linux_x86_64.whl (39.8MB): 97% 39.0MB
...
为什么VM没有安装TensorFlow?也许我需要通过一些命令手动做什么或什么?也许我需要在PyCharm中设置一些选项?我对这一切都很陌生。