当我们在jupyter notebook中运行时可能会遇见没有某个包的情况,如下:
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-1-24005895b065> in <module>
2 import h5py
3 import matplotlib.pyplot as plt ----> 4 import tensorflow as tf 5 from tensorflow.python.framework import ops 6 import tf_utils ModuleNotFoundError: No module named 'tensorflow'
首先我的jupyter notebook是在本地设置的python3的环境deeplearning下运行的:
userdeMacBook-Pro:~ user$ conda activate deeplearning
(deeplearning) userdeMacBook-Pro:~ user$ jupyter notebook
但是很奇怪的是我python3的环境下已经安装好了tensorflow,但是jupyter中还是显示没有
(deeplear