安装后无法识别TensorFlow的原因是什么?

时间:2020-05-16 19:33:08

标签: python tensorflow conda

enter image description here

所有4个安装步骤均在 32位窗口上执行:

1.conda创建-n张量N python = 3.6

2。激活张量N

3.conda install -c hesi_m张量流

4.pip安装tensorflow

但是尝试时

import tensorflow

它显示错误:

ModuleNotFoundError: No module named "tensorflow"

1 个答案:

答案 0 :(得分:0)

在运行conda activate tensorN之前执行import tensorflow。您已经在环境tensorN中安装了tensorflow,并且将只能在环境中访问它