我正在使用Jupyter Notebook,尝试导入tensorflow。但是出现了以下错误:
那么为什么找不到呢?jupyter在哪里查找软件包?我甚至在虚拟环境之外安装了tensorflow。
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-15-64156d691fe5> in <module>()
----> 1 import tensorflow as tf
ModuleNotFoundError: No module named 'tensorflow'
我正在虚拟环境中通过输入 jupyter notebook
命令来托管笔记本:
(labs) Sahands-MBP:part1 sahandzarrinkoub$ jupyter notebook
TensorFlow 已经在虚拟环境中安装成功:
(labs) Sahands-MBP:part1 sahandzarrinkoub$ python
Python 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 12:04:33)
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow
>>>
那么为什么找不到呢?jupyter在哪里查找软件包?我甚至在虚拟环境之外安装了tensorflow。