【发布时间】:2020-11-11 10:20:34
【问题描述】:
这个问题与this 有关,但解决方案对我没有帮助。我决定开一个新帖子,因为这个话题太老了,建议的解决方案不起作用。
那么问题出在哪里:
当我尝试导入 keras 时,django 停止工作。当我在日志中重新启动 apache 时,我可以看到:
2020-11-11 10:01:07.783351: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'libcudart.so.10.1'; dlerror: libcudart.so.10.1: cannot open shared object file: No such file or directory
2020-11-11 10:01:07.783383: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
这很好。但是,如果我尝试访问我的任何页面,它们就不会加载。日志中没有其他任何事情发生,没有任何错误或其他内容。
我做错了什么?
我的目标是使用经过训练的模型进行情绪分析。 我正在使用 ubuntu 18.04、python 3.6、django 3.1.2、Keras 2.4.3、tensorflow 2.3.1 开发远程虚拟机
【问题讨论】:
标签: python django tensorflow keras