[英]Tensorflow is not importing on jupyter notebook
I have installed tensorflow on my linux desktop and I have tried importing it in the terminal which worked. 我已经在我的linux桌面上安装了tensorflow,并尝试将其导入有效的终端中。 But when I tried the same thing on jupyter notebook, I am getting the error:
但是,当我在jupyter笔记本上尝试相同的操作时,出现了错误:
ModuleNotFoundError: No module named 'tensorflow'
To install tensorflow I have followed below steps: 要安装tensorflow,我遵循以下步骤:
conda create -n tensorflow_env python=3
source activate tensorflow_env
pip install tensorflow
Please install your conda environment using the below command in terminal 请在终端中使用以下命令安装您的conda环境
python -m ipykernel install --user --name tensorflow_env.
After installation, 安装后,
1)reload your jupyter notebook.
2)In jupyter notebook, click on kernel->change kernel->tensorflow_env.
3)open new notebook with kernel "tensorflow_env"
4)Try importing tensorflow.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.