安装 keras 和 tensorflow 后,python 脚本因分段错误而崩溃(核心已转储)
After installing keras and tensorflow, python script crashes with Segmentation Fault (core dumped)
为什么import语句(最终导致keras import)只有在处理了故意的异常后才起作用???????
我有一个 python3.5 项目有多个 main.py 入口点。
一个入口点在服务器上运行,另一个在客户端上运行,使用 pycos 进行通信(网络 IPC)。
我的 server/main.py 曾经执行得很好,但是在安装了 keras 和 tensorflow 之后
pip install -r requirements.txt --user
server/main.py 崩溃读取
Using TensorFlow backend.
Segmentation fault (core dumped)
我监控了服务器 VM 和硬盘 space 上的 RAM,但没有任何迹象表明 server/main.py 崩溃的原因... 它甚至不导入 keras 或者导入跟踪中的 tensorflow。 我猜 _ init _.py 导入跟踪最终导致导入 keras / tensorflow 包的模块
任何人都可以建议如何找到问题吗?
requirements.txt
jsonpickle
matplotlib
seaborn
numpy
pycos
jsonpickle
statsmodels
pandas
sklearn
pymongo
keras
tensorflow==2.0.0-beta1
事实证明,如果调用 pycos 的 python 模块暴露在它们各自 [ 的 _ init _ _.py =21=] sub-packages.
删除 monitoringSimulation/monitor.py 等.. 从 monitoringSimulation/ _ _ init _ 导入 _.py 解决了这个问题。
将向 pycos 提交错误,因为我最终需要将 monitor.py 模块公开给其他子包。
我有一个 python3.5 项目有多个 main.py 入口点。
一个入口点在服务器上运行,另一个在客户端上运行,使用 pycos 进行通信(网络 IPC)。
我的 server/main.py 曾经执行得很好,但是在安装了 keras 和 tensorflow 之后
pip install -r requirements.txt --user
server/main.py 崩溃读取
Using TensorFlow backend.
Segmentation fault (core dumped)
我监控了服务器 VM 和硬盘 space 上的 RAM,但没有任何迹象表明 server/main.py 崩溃的原因... 它甚至不导入 keras 或者导入跟踪中的 tensorflow。 我猜 _ init _.py 导入跟踪最终导致导入 keras / tensorflow 包的模块
任何人都可以建议如何找到问题吗?
requirements.txt
jsonpickle
matplotlib
seaborn
numpy
pycos
jsonpickle
statsmodels
pandas
sklearn
pymongo
keras
tensorflow==2.0.0-beta1
事实证明,如果调用 pycos 的 python 模块暴露在它们各自 [ 的 _ init _ _.py =21=] sub-packages.
删除 monitoringSimulation/monitor.py 等.. 从 monitoringSimulation/ _ _ init _ 导入 _.py 解决了这个问题。
将向 pycos 提交错误,因为我最终需要将 monitor.py 模块公开给其他子包。