问题描述

在jupyter notebook中impoort matplotlib报错,在VS code中引用正常

分析原因

jupyter notebook的kenel是python3,而VS code中的环境是我在anaconda自建的python36

解决办法

使用pip3 install matplotlib,确保安装的matplotlib是python3版本的,默认版是2.7

ModuleNotFoundError: No module named 'matplotlib

 

参考

https://stackoverflow.com/questions/49187042/modulenotfounderror-no-module-named-matplotlib

相关文章:

  • 2021-06-07
  • 2021-11-13
  • 2021-06-26
  • 2021-09-05
  • 2021-04-18
  • 2022-01-18
  • 2021-07-03
  • 2021-10-27
猜你喜欢
  • 2021-07-21
  • 2021-07-17
  • 2021-09-01
  • 2022-12-23
  • 2021-06-27
  • 2021-06-16
相关资源
相似解决方案