[英]Can import TensorFlow and Keras in Jupyter, even though I have them installed?
I have setup Tensorflow and Keras on Mac OS. 我已经在Mac OS上安装了Tensorflow和Keras。 I also have Jupyter that came as part of my Anaconda installation.
我的Anaconda安装中还包含Jupyter。
When I try to import Tensoflow or Keras in a Jupyter notebook, I get "a no module named <...>" error. 当我尝试在Jupyter笔记本中导入Tensoflow或Keras时,出现“没有名为<...>的模块”错误。
Am I missing a step ? 我错过了一步吗?
Change your environments. 改变您的环境。 You probably installed everything inside a tensorflow environment, but ran the notebook on the root one.
您可能将所有内容都安装在tensorflow环境中,但在根目录上运行了笔记本。
If you are a Windows/Mac user who is working on Jupyter notebook, pip install keras
doesn't help you. 如果您是使用Jupyter笔记本电脑的Windows / Mac用户,则
pip install keras
对您没有帮助。 Instead, try the steps below: 相反,请尝试以下步骤:
conda install tensorflow
and after conda install keras
conda install tensorflow
并在conda install tensorflow
conda install keras
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.