“ ImportError:追溯(最近一次通话最近):”我不知道如何解决此错误

时间:2020-10-18 09:04:19

标签: python python-3.x django tensorflow tflearn

让聊天机器人观看一些视频时出现错误 我安装了python 3.6.5 和点安装nltk 点安装numpy pip安装tflearn 点安装tensorflow 我写了代码

import nltk
from nltk.stem.lancaster import LancasterStemmer
stemmer = LancasterStemmer()

import numpy
import tflearn
import tensorflow
import random
import json

with open("intents.json") as file:
    data =json.load(file)

print(data)

然后我运行这段代码

Traceback (most recent call last):
  File "C:\Users\USER\anaconda3\envs\chat\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in <module>
    from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed: 지정된 모듈을 찾을 수 없습니다.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "main.py", line 6, in <module>
    import tflearn
  File "C:\Users\USER\anaconda3\envs\chat\lib\site-packages\tflearn\__init__.py", line 4, in <module>
    from . import config
  File "C:\Users\USER\anaconda3\envs\chat\lib\site-packages\tflearn\config.py", line 3, in <module>
    import tensorflow as tf
  File "C:\Users\USER\anaconda3\envs\chat\lib\site-packages\tensorflow\__init__.py", line 41, in <module>
    from tensorflow.python.tools import module_util as _module_util
  File "C:\Users\USER\anaconda3\envs\chat\lib\site-packages\tensorflow\python\__init__.py", line 40, in <module>
    from tensorflow.python.eager import context
  File "C:\Users\USER\anaconda3\envs\chat\lib\site-packages\tensorflow\python\eager\context.py", line 35, in <module>
    from tensorflow.python import pywrap_tfe
  File "C:\Users\USER\anaconda3\envs\chat\lib\site-packages\tensorflow\python\pywrap_tfe.py", line 28, in <module>
    from tensorflow.python import pywrap_tensorflow
  File "C:\Users\USER\anaconda3\envs\chat\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 83, in <module>
    raise ImportError(msg)
ImportError: Traceback (most recent call last):
  File "C:\Users\USER\anaconda3\envs\chat\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in <module>
    from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed: 지정된 모듈을 찾을 수 없습니다.


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.

如何解决此错误

0 个答案:

没有答案