简体   繁体   English

在导入 tensorflow 的过程中,每次都会出现这个错误。我确实尝试过卸载然后重新安装。它仍然给出同样的错误

[英]During the importing of tensorflow this error came up everytime.I did tried to uninstall and then install it again .It still gives the same error

this is the error after import tensorflow as tf code on jupyter notebook这是在 jupyter 笔记本上将 tensorflow 作为 tf 代码导入后的错误

ImportError Traceback (most recent call last) ~\anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in 63 try: ---> 64 from tensorflow.python._pywrap_tensorflow_internal import * 65 # This try catch logic is because there is no bazel equivalent for py_extension. ImportError Traceback(最近一次调用最后一次)~\anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in 63 try: ---> 64 from tensorflow.python._pywrap_tensorflow_internal import * 64 因为 #catch 65 py_extension 没有等效的 bazel。

ImportError: DLL load failed while importing _pywrap_tensorflow_internal: The specified module could not be found.

During handling of the above exception, another exception occurred:

ImportError                               Traceback (most recent call last)
<ipython-input-1-64156d691fe5> in <module>
----> 1 import tensorflow as tf

~\anaconda3\lib\site-packages\tensorflow\__init__.py in <module>
     39 import sys as _sys
     40 
---> 41 from tensorflow.python.tools import module_util as _module_util
     42 from tensorflow.python.util.lazy_loader import LazyLoader as _LazyLoader
     43 

~\anaconda3\lib\site-packages\tensorflow\python\__init__.py in <module>
     38 # pylint: disable=wildcard-import,g-bad-import-order,g-import-not-at-top
     39 
---> 40 from tensorflow.python.eager import context
     41 
     42 # pylint: enable=wildcard-import

~\anaconda3\lib\site-packages\tensorflow\python\eager\context.py in <module>
     33 from tensorflow.core.protobuf import config_pb2
     34 from tensorflow.core.protobuf import rewriter_config_pb2
---> 35 from tensorflow.python import pywrap_tfe
     36 from tensorflow.python import tf2
     37 from tensorflow.python.client import pywrap_tf_session

~\anaconda3\lib\site-packages\tensorflow\python\pywrap_tfe.py in <module>
     26 
     27 # pylint: disable=invalid-import-order,g-bad-import-order, wildcard-import, unused-import
---> 28 from tensorflow.python import pywrap_tensorflow
     29 from tensorflow.python._pywrap_tfe import *

~\anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in <module>
     81 for some common reasons and solutions.  Include the entire stack trace
     82 above this error message when asking for help.""" % traceback.format_exc()
---> 83   raise ImportError(msg)
     84 
     85 # pylint: enable=wildcard-import,g-import-not-at-top,unused-import,line-too-long

ImportError: Traceback (most recent call last):
  File "C:\Users\Ayush\anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in <module>
    from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed while importing _pywrap_tensorflow_internal: The specified module could not be found.


Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/errors

for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.

You're missing a dll file, you'll have to install Microsoft Visual C++ 2015 Redistributable and to make sure the DLL is installed in the system32 folder according to this您缺少 dll 文件,您必须安装 Microsoft Visual C++ 2015 Redistributable 并确保 DLL 安装在系统

I hope this helps resolve this issue!我希望这有助于解决这个问题!

on "ANACONDA.NAVIGATOR" MAIN PAGE CHANGE THE "APPLICATION ON TENSORFLOW OR TF" enter image description here在“ANACONDA.NAVIGATOR”主页上更改“TENSORFLOW 或 TF 上的应用”在此处输入图像描述

INSTALA E IMPORTA TODO ESTO! INSTALA E IMPORTA TODO ESTO!

    ! Pip install pandas
    ! Pip install keras
    ! Pip install tensorflow
    import pandas as pd
    import keras
    import tensorflow
    from keras.models import Sequential
    from keras.layers import Dense
    from keras.wrappers.scikit_learn import KerasClassifier
    from keras.utils import np_utils
    from sklearn.model_selection import cross_val_score
    from sklearn.model_selection import KFold
    from sklearn.preprocessing import LabelEncoder

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我创建了一个 venv 并尝试安装 tensorflow 1.15 但仍然是同样的错误 - I created a venv and tried to install tensorflow 1.15 but still the same error Spyder-导入张量流会出现错误 - Spyder - Importing tensorflow gives an error 我尝试使用 pip install django 安装 django 但我仍然收到此错误任何评论 - I tried to install django using pip install django but still i am getting this error any comments 我试图比较 int 和 func 并且它给出了一个错误 - I tried to compare int and func and it gives an error 我尝试制作一个计算器,但它给出了一个错误 - I tried a make a calculator but it gives an error “break outside loop”,但我已经尝试了所有方法,但仍然收到相同的错误消息 - "break outside loop" but i've tried everything and still got the same error message 我尝试安装 wxpython 但没有成功 - I tried to install wxpython but it did not work 我尝试使用 pip install django 安装 django,后来我升级 pip 时出错,我完成了升级 pip,但仍然出现如下我提到的错误 - I tried to install django using pip install django, later i get error to upgrade pip, i done upgrade pip, but still got error as below i mentioned 导入 tensorflow 时出错 - I have an error while importing tensorflow 导入 tensorflow 时出现类型错误 - I get a type error when importing tensorflow
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM