ImportError: No module in import tensorflow in Jupiter notebook.

Asked 2 years ago, Updated 2 years ago, 105 views

I'm a python beginner.


in the March 2017 issue of Interface on page 60
on the Jupiter Notebook import tensorflow as tf

ImportError: No module named 'tensorflow'
Failed to execute with error.
Enter a description of the image here

tensorflow/ipython has been installed before.
Enter a description of the image here

As a trial, I tried adding the folder path with tensor.py below, but it still didn't fix the problem.
sys.path.append("c:\tmp\AI\Anaconda3\Lib\site-packages\sympy\tensor")

Please tell me what the problem is.

Environment: Windows 10 64-bit Download Anaconda 4.3.1

python anaconda

2022-09-29 22:30

1 Answers

Since you did not install jupyter in envtensorflow, the jupyter command is probably not in envtensorflow.
I suspect that the jupyter command for the Anaconda default environment is running.

activate tensorflow
conda install jupy


2022-09-29 22:30

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.