实现LSTM时遇到的问题

xlrd.biffh.XLRDError: Excel xlsx file;not supported解决方法

在运用python中xlrd库读取.xlsx文件时报错,无法读取。这是由于当前python中的xlrd版本过高导致的,高版本下删除的对应的.xlsx读取方法。因此,只需要重装xlrd并降低xlrd的版本即可,win+R打开cmd,输入以下指令,即可解决该问题:

pip install xlrd==1.2.0

W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found

因为TF2.6中默认为GPU版本,但这里我无需GPU加速计算,因此直接安装CPU版即可win+R打开cmd,输入以下指令:

首先删除GPU版:

pip uninstall tensorflow

 安装CPU版:

pip install tensorflow-cpu

This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.

  此问题不影响使用,解决方法可以参考如下网址:

https://stackoverflow.com/questions/41293077/how-to-compile-tensorflow-with-sse4-2-and-avx-instructions

posted @ 2022-05-31 17:07  Weltㅤ  阅读(242)  评论(0编辑  收藏  举报