【问题标题】:I am unable to import tensorflow and tflearn我无法导入 tensorflow 和 tflearn
【发布时间】:2020-06-25 14:06:30
【问题描述】:

error

这是我的代码:

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

import tensorflow
import numpy
import tflearn

import random
import json

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

print(data)

每个模块都已成功安装,但是tflearntensorflow 无法导入,并且每次 cmd 都会引发导入错误

【问题讨论】:

  • 你的 CPU 支持 AVX 吗?

标签: python json tensorflow artificial-intelligence chatbot


【解决方案1】:

TensorFlow 发布二进制文件 (CPU/GPU) 版本 1.6 及更高版本预构建了 AVX 指令集。 查看硬件要求以了解更多信息。

因此,在任何没有这些指令集的 CPU 上,CPU 或 GPU 版本的 TF 都将无法加载。

尝试使用谷歌的colab

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-05-17
    • 1970-01-01
    • 2019-02-12
    • 1970-01-01
    • 2016-07-30
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多