我正在使用pandas/python以HDFStore格式保存DataFrame.当我应用my_data_frame.to_hdf(arguments ...)命令时,我收到一条错误消息:警告!***HDF5库版本不匹配错误***和我的程序停止.
我正在使用Python 3.5.2 :: Anaconda 4.1.1(64位)处理Windows 7(64位).
我一直在阅读这个错误消息,因为它说我的计算机上安装的HDF5版本和Anacondas使用的版本之间存在问题.根据这篇文章,一个简单的"conda安装-c anaconda hdf5 = 1.8.18"可以解决我的问题,但我仍然有相同的消息错误.
谢谢你的帮助.
在这里,我提供了错误的完整日志:
Warning! ***HDF5 library version mismatched error***
The HDF5 header files used to compile this application do not match
the version used by the HDF5 library to which this application is linked.
Data corruption or segmentation faults may occur if the application continues.
This can happen when an application was compiled by one version of HDF5 but
linked … 我根据以下说明使用 conda 在我的 mac 上安装了 tensorflow 2 :
conda create -n tf2 tensorflow
Run Code Online (Sandbox Code Playgroud)
然后我安装了 ipykernel 以将这个新环境添加到我的 jupyter notebook 内核中,如下所示:
conda activate tf2
conda install ipykernel
python -m ipykernel install --user --name=tf2
Run Code Online (Sandbox Code Playgroud)
这似乎工作得很好,我能够在我的 jupyter 笔记本内核上看到我的tf2环境。
然后我尝试运行简单的 MNIST示例来检查是否一切正常,当我执行这行代码时:
model.fit(x_train, y_train, epochs=5)
Run Code Online (Sandbox Code Playgroud)
我的 jupyter 笔记本的内核在没有更多信息的情况下就死了。
我通过python mnist_test.py和ipython(一个命令一个命令)在我的终端上执行了相同的代码,我没有任何问题,让我假设我的 tensorflow 2 已正确安装在我的 conda 环境中。
关于安装过程中出了什么问题的任何想法?
版本:
python==3.7.5
tensorboard==2.0.0
tensorflow==2.0.0
tensorflow-estimator==2.0.0
ipykernel==5.1.3
ipython==7.10.2
jupyter==1.0.0
jupyter-client==5.3.4
jupyter-console==5.2.0
jupyter-core==4.6.1
Run Code Online (Sandbox Code Playgroud)
这里我放了完整的脚本以及执行的STDOUT:
import tensorflow as tf
import matplotlib.pyplot as plt …Run Code Online (Sandbox Code Playgroud)