jupyter notebook import error: no module named 'matplotlib'

后端 未结 7 1734
小鲜肉
小鲜肉 2021-01-02 06:50

I\'m an ubuntu 16.4 user and I installed anaconda3 and using both python2 and python3 kernels.

>>>jupyter kernelspec list Available kernels: pyt

7条回答
  •  礼貌的吻别
    2021-01-02 07:32

    I have checked the version of python executable and the path from where the library is getting used:

    import sys

    sys.executable # to know the version of executable used

    sys.path # to know from which path library is getting imported.

    And then: I have installed the library in jupyter notebook cell by using pip.

    pip install matplotlib

    After that import started working for me.

提交回复
热议问题