【发布时间】:2018-03-25 14:27:46
【问题描述】:
我尝试使用 Tensorflow 在 Heroku 中部署我的 AI 应用程序。我收到类似Failed to load the native Tensor Flow runtime 的错误。
提前致谢。
【问题讨论】:
标签: django python-2.7 heroku tensorflow
我尝试使用 Tensorflow 在 Heroku 中部署我的 AI 应用程序。我收到类似Failed to load the native Tensor Flow runtime 的错误。
提前致谢。
【问题讨论】:
标签: django python-2.7 heroku tensorflow
根据堆栈跟踪存在 ImportError: PyUnicodeUCS4_FromString。
当您安装了多个版本的 Python 时会发生这种情况,您可能使用与编译模块时使用的解释器不同的解释器运行编译模块。
可以使用 UCS2 或 UCS4 的内部 Unicode 表示来构建 Python。
Heroku 上新创建的 Python 应用程序默认使用 Python 3.6.2 运行时。
您可以指定任意版本的 Python 来运行您的 应用。阅读文档python-runtimes heroku devcenter
【讨论】: