在执行from keras.models import Sequential时,我遇到以下错误
~\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py
在81中出于一些常见的原因和解决方案。在请求帮助时,在此错误消息的上方包含整个堆栈跟踪82。“”% traceback.format_exc()
"C:\Users\joe\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py",:ImportError: ImportError(最近一次调用):文件tensorflow.python._pywrap_tensorflow_internal第64行,在tensorflow.python._pywrap_tensorflow_internal导入* ImportError: DLL加载失败:找不到指定的模块。未能加载本机TensorFlow运行时。
这是pip freeze的结果
alabaster==0.7.12
anaconda-client==1.7.2
anaconda-navigator==1.9.12
anaconda-project==0.8.3
....
conda==4.9.2
conda-build==3.18.11
Keras==2.3.1
Keras-Applications @ file:///tmp/build/80754af9/keras-applications_1594366238411/work
Keras-Preprocessing==1.1.2
tensorflow==2.3.1
tensorflow-estimator==2.3.0在Failed to load the native TensorFlow runtime. Python 3.5.2,我尝试了下面的每一个答案
conda create -n gpu_env tensorflow-gpu
conda activate gpu_env给出了在pip freeze上的如下结果
jupyter-core==4.6.3
Keras-Applications @ file:///tmp/build/80754af9/keras-applications_1594366238411/work
Keras-Preprocessing==1.1.0
tensorflow==2.1.0
tensorflow-estimator==2.1.0
termcolor==1.1.0但是当我打开jupyter笔记本并执行程序时,得到相同的error.Not,确定这里有什么问题吗?
发布于 2020-11-16 13:22:26
我能解决这个问题
pip uninstall tensorflow
pip install tensorflow==1.15https://stackoverflow.com/questions/64858640
复制相似问题