jupyter notebook import error: no module named 'matplotlib'

后端 未结 7 1776
小鲜肉
小鲜肉 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条回答
  •  萌比男神i
    2021-01-02 07:35

    This worked for me on my windows 10 :

    1. I didn't use conda. I simply downloaded python 3.x version, then created a python 3 environment by the following command : c:\python3x\python -m venv c:\path\to\your\env.
    2. After that you can check your python version by this command python -v.
    3. Then you need to activate the python 3 environment by entering this command : env/Scripts/activate.
    4. Then install the matplotlib library by doing pip3 install matplotlib .

提交回复
热议问题